diff options
Diffstat (limited to 'src/lang/ts-lang/core/lexer.ts')
| -rw-r--r-- | src/lang/ts-lang/core/lexer.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lang/ts-lang/core/lexer.ts b/src/lang/ts-lang/core/lexer.ts index bcd5785..71a63a6 100644 --- a/src/lang/ts-lang/core/lexer.ts +++ b/src/lang/ts-lang/core/lexer.ts @@ -1,4 +1,7 @@ -import { LexerCtx, Token, TokenType } from "./common"; +import { KSError, LexerCtx, Token, TokenType } from "./common"; + +export type LexerError<Message extends string = string> = + KSError<`Lexer error: ${Message}`>; export type IsWhitespace<T extends string> = T extends `${TokenType.SPACE}` ? true |
