diff --git a/postcss-selector-parser.d.ts b/postcss-selector-parser.d.ts index 9f0a233..15ad1df 100644 --- a/postcss-selector-parser.d.ts +++ b/postcss-selector-parser.d.ts @@ -14,9 +14,6 @@ */ export = parser; -// A type that's T but not U. -type Diff = T extends U ? never : T; - // TODO: Conditional types in TS 1.8 will really clean this up. declare function parser(): parser.Processor; declare function parser(processor: parser.AsyncProcessor): parser.Processor; @@ -347,10 +344,9 @@ declare namespace parser { function root(opts: ContainerOptions): Root; function isRoot(node: any): node is Root; - interface _Selector extends Container> { + interface Selector extends Container { type: "selector"; } - type Selector = _Selector; function selector(opts: ContainerOptions): Selector; function isSelector(node: any): node is Selector;