Skip to content

Commit

Permalink
Create @types/css-tree patch to pass type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Dec 7, 2022
1 parent c9d19b9 commit b911885
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions patches/@types+css-tree+2.0.0.patch
@@ -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 };

0 comments on commit b911885

Please sign in to comment.