Skip to content

Commit bd560a6

Browse files
authored
🤖 Merge PR DefinitelyTyped#71435 feat(css-tree): add lexer by @ryo-manba
1 parent 7dbd23a commit bd560a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

types/css-tree/css-tree-tests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,3 +749,5 @@ lexer.match("foo", ast); // $ExpectType LexerMatchResult
749749
lexer.match("foo", "bar"); // $ExpectType LexerMatchResult
750750
lexer.match(syntax, ast); // $ExpectType LexerMatchResult
751751
lexer.match(syntax, "bar"); // $ExpectType LexerMatchResult
752+
753+
csstree.lexer; // $ExpectType Lexer

types/css-tree/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,8 @@ export class Lexer {
907907
match(syntax: DSNode | string, value: CssNode | string): LexerMatchResult;
908908
}
909909

910+
export const lexer: Lexer;
911+
910912
export function fork(extension: {
911913
atrules?: Record<string, string> | undefined;
912914
properties?: Record<string, string> | undefined;

0 commit comments

Comments
 (0)