Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create
@types/css-tree
patch to pass type errors
- Loading branch information
1 parent
c9d19b9
commit b911885
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/node_modules/@types/css-tree/index.d.ts b/node_modules/@types/css-tree/index.d.ts | ||
index 7723f76..2f75087 100755 | ||
--- a/node_modules/@types/css-tree/index.d.ts | ||
+++ b/node_modules/@types/css-tree/index.d.ts | ||
@@ -830,3 +830,18 @@ export const url: { | ||
decode(input: string): string; | ||
encode(input: string): string; | ||
}; | ||
+ | ||
+type MatchResult = { | ||
+ error?: { | ||
+ mismatchLength: number; | ||
+ mismatchOffset: number; | ||
+ name: string; | ||
+ rawMessage: string; | ||
+ }; | ||
+}; | ||
+ | ||
+declare class Lexer { | ||
+ matchProperty(propertyName: string, value: string): MatchResult; | ||
+} | ||
+ | ||
+export function fork(extension: Record<string, Record<string, string>>): { lexer: Lexer }; |