Skip to content

Commit 7f537c9

Browse files
committed
TypeScript 5.0.4: Assertion
1 parent 9b72abe commit 7f537c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/token/string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type TTakeString<Quotes extends string[], Input extends string> = (
6060
: [] // fail: did not match Initial
6161
)
6262
function TakeString<Quotes extends string[], Input extends string>(quotes: [...Quotes], input: Input): TTakeString<Quotes, Input> {
63-
const initial = TakeInitial(quotes, input)
63+
const initial = TakeInitial(quotes, input) as [string, string]
6464
return (
6565
IsResult(initial)
6666
? TakeSpan(initial[0], `${initial[0]}${initial[1]}`)

0 commit comments

Comments
 (0)