Skip to content

Commit 49edc99

Browse files
committed
fix: normalize-tokens.ts type
1 parent 525b5db commit 49edc99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/examples/ts/utils/normalize-tokens.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const normalizeTokens = (
5353

5454
let i = 0
5555
let stackIndex = 0
56-
let currentLine = []
56+
let currentLine: Token[] = []
5757

5858
const acc = [currentLine]
5959

@@ -84,7 +84,7 @@ export const normalizeTokens = (
8484
if (typeof content !== 'string') {
8585
stackIndex++
8686
typeArrStack.push(types)
87-
tokenArrStack.push(content)
87+
tokenArrStack.push(content as PrismToken[])
8888
tokenArrIndexStack.push(0)
8989
tokenArrSizeStack.push(content.length)
9090
continue

0 commit comments

Comments
 (0)