We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b72abe commit 7f537c9Copy full SHA for 7f537c9
src/token/string.ts
@@ -60,7 +60,7 @@ type TTakeString<Quotes extends string[], Input extends string> = (
60
: [] // fail: did not match Initial
61
)
62
function TakeString<Quotes extends string[], Input extends string>(quotes: [...Quotes], input: Input): TTakeString<Quotes, Input> {
63
- const initial = TakeInitial(quotes, input)
+ const initial = TakeInitial(quotes, input) as [string, string]
64
return (
65
IsResult(initial)
66
? TakeSpan(initial[0], `${initial[0]}${initial[1]}`)
0 commit comments