@types/css-tree
Advanced tools
Comparing version 2.0.1 to 2.3.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for css-tree 2.0 | ||
// Type definitions for css-tree 2.3 | ||
// Project: https://github.com/csstree/csstree | ||
@@ -596,4 +596,4 @@ // Definitions by: Erik Källén <https://github.com/erik-kallen> | ||
export function find(ast: CssNode, fn: FindFn): CssNode; | ||
export function findLast(ast: CssNode, fn: FindFn): CssNode; | ||
export function find(ast: CssNode, fn: FindFn): CssNode | null; | ||
export function findLast(ast: CssNode, fn: FindFn): CssNode | null; | ||
export function findAll(ast: CssNode, fn: FindFn): CssNode[]; | ||
@@ -834,1 +834,35 @@ | ||
}; | ||
export class SyntaxMatchError extends SyntaxError { | ||
rawMessage: string; | ||
syntax: string; | ||
css: string; | ||
mismatchOffset: number; | ||
mismatchLength: number; | ||
offset: number; | ||
line: number; | ||
column: number; | ||
loc: { | ||
source: string; | ||
start: { offset: number; line: number; column: number }; | ||
end: { offset: number; line: number; column: number }; | ||
}; | ||
} | ||
export class SyntaxReferenceError extends SyntaxError { | ||
reference: string; | ||
} | ||
export interface LexerMatchResult { | ||
error: Error | SyntaxMatchError | SyntaxReferenceError | null; | ||
} | ||
export class Lexer { | ||
matchProperty(propertyName: string, value: CssNode | string): LexerMatchResult; | ||
} | ||
export function fork(extension: { | ||
atrules?: Record<string, string> | undefined, | ||
properties?: Record<string, string> | undefined, | ||
types?: Record<string, string> | undefined, | ||
}): { lexer: Lexer }; |
{ | ||
"name": "@types/css-tree", | ||
"version": "2.0.1", | ||
"version": "2.3.0", | ||
"description": "TypeScript definitions for css-tree", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-tree", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "794dc18117eca365fced2ef533fbd0525a5987cbd96f8916708dfa64ec7029f2", | ||
"typesPublisherContentHash": "d64cbfe4eddf0665710ef7cd890a7d229a7f57efa2514671914b58e63070e870", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 02 Jan 2023 10:32:52 GMT | ||
* Last updated: Wed, 08 Feb 2023 09:02:34 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24376
751