Skip to content

Commit 7de7334

Browse files
committed
small refactor
1 parent 94c1636 commit 7de7334

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/parser/parser_lib.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ export function withSource<T>(
271271
}))
272272
);
273273
}
274-
export function sourceOnly<T>(
275-
parser: Parser<T>,
276-
): Parser<string> {
274+
export function sourceOnly(parser: Parser<unknown>): Parser<string> {
277275
return withSource(parser).map(([_, source]) => source);
278276
}

0 commit comments

Comments
 (0)