Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
improve typings of constructor helpers
  • Loading branch information
romainmenke committed Jun 22, 2024
commit e80562b716652cf64586fb9c906722cfd02a2376
6 changes: 3 additions & 3 deletions postcss-selector-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}