From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- node_modules/@csstools/css-parser-algorithms/dist/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'node_modules/@csstools/css-parser-algorithms/dist/index.d.ts') 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; + node: unknown; parent: unknown; }, index: number | string) => boolean | void): false | undefined; }): Map; @@ -335,6 +335,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. * -- cgit v1.2.3