From e80562b716652cf64586fb9c906722cfd02a2376 Mon Sep 17 00:00:00 2001 From: Romain Menke Date: Sat, 22 Jun 2024 14:56:20 +0200 Subject: [PATCH] improve typings of constructor helpers --- postcss-selector-parser.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postcss-selector-parser.d.ts b/postcss-selector-parser.d.ts index 9163ab1..a7fe54b 100644 --- a/postcss-selector-parser.d.ts +++ b/postcss-selector-parser.d.ts @@ -532,13 +532,13 @@ declare namespace parser { interface Identifier extends Base { type: "id"; } - function id(opts: any): any; + function id(opts: any): Identifier; function isIdentifier(node: any): node is Identifier; interface Nesting extends Base { type: "nesting"; } - function nesting(opts: any): any; + function nesting(opts: any): Nesting; function isNesting(node: any): node is Nesting; interface String extends Base { @@ -550,6 +550,6 @@ declare namespace parser { interface Universal extends Base { type: "universal"; } - function universal(opts?: NamespaceOptions): any; + function universal(opts?: NamespaceOptions): Universal; function isUniversal(node: any): node is Universal; }