Skip to content

Commit a50169a

Browse files
committed
chore: update
1 parent 51848ac commit a50169a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qr-js/qr-rs-block.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const RS_BLOCK_TABLE = [
247247
[20, 45, 15, 61, 46, 16],
248248
]
249249

250-
function getRsBlockTable(typeNumber, errorCorrectLevel) {
250+
function getRsBlockTable(typeNumber: number, errorCorrectLevel: number) {
251251
switch (errorCorrectLevel) {
252252
case qrErrorCorrectLevel.L:
253253
return RS_BLOCK_TABLE[(typeNumber - 1) * 4]
@@ -284,7 +284,7 @@ QRRSBlock.getRSBlocks = function (
284284

285285
const length = rsBlock.length / 3
286286

287-
const list = []
287+
const list: number[] = []
288288

289289
for (let i = 0; i < length; i++) {
290290
const count = rsBlock[i * 3]

0 commit comments

Comments
 (0)