Skip to content

Commit 3eb1e07

Browse files
committed
remove unnecessary type annotations
1 parent e5d9b9d commit 3eb1e07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dictionary/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const comma = lex(matchString(",", "comma"));
4242
const semicolon = lex(matchString(";", "semicolon"));
4343
const slash = lex(matchString("/", "slash"));
4444

45-
const keyword = memoize(<T extends string>(keyword: T): Parser<T> =>
45+
const keyword = memoize(<T extends string>(keyword: T) =>
4646
lex(match(/[a-z\-]+/, keyword))
4747
.filter((that) =>
4848
keyword === that ||

src/parser/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import { describe, Token } from "./token.ts";
6666
const spaces = match(/\s*/, "spaces");
6767

6868
const specificToken = memoize(
69-
<T extends Token["type"]>(type: T): Parser<Token & { type: T }> =>
69+
<T extends Token["type"]>(type: T) =>
7070
token.map((token) =>
7171
token.type === type
7272
? token as Token & { type: T }

0 commit comments

Comments
 (0)