diff options
Diffstat (limited to 'node_modules/@csstools/css-parser-algorithms/dist/index.d.ts')
| -rw-r--r-- | node_modules/@csstools/css-parser-algorithms/dist/index.d.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/node_modules/@csstools/css-parser-algorithms/dist/index.d.ts b/node_modules/@csstools/css-parser-algorithms/dist/index.d.ts index 9889d9ea..23d6c120 100644 --- a/node_modules/@csstools/css-parser-algorithms/dist/index.d.ts +++ b/node_modules/@csstools/css-parser-algorithms/dist/index.d.ts @@ -300,7 +300,7 @@ export declare class FunctionNode extends ContainerNodeBaseClass { */ export declare function gatherNodeAncestry(node: { walk(cb: (entry: { - node: Array<unknown> | unknown; + node: unknown; parent: unknown; }, index: number | string) => boolean | void): false | undefined; }): Map<unknown, unknown>; @@ -336,6 +336,12 @@ export declare function isTokenNode(x: unknown): x is TokenNode; export declare function isWhitespaceNode(x: unknown): x is WhitespaceNode; /** + * Check if the current object is a `WhiteSpaceNode` or a `CommentNode`. + * This is a type guard. + */ +export declare function isWhiteSpaceOrCommentNode(x: unknown): x is WhitespaceNode | CommentNode; + +/** * Parse a comma-separated list of component values. * * @example |
