Comparing version 3.0.0 to 3.1.0
@@ -257,2 +257,3 @@ export interface DeclarationBase { | ||
union(members: Type[]): UnionType; | ||
intersection(members: Type[]): IntersectionType; | ||
typeof(type: NamedTypeReference): TypeofReference; | ||
@@ -259,0 +260,0 @@ tripleSlashReferencePathDirective(path: string): TripleSlashReferencePathDirective; |
@@ -236,2 +236,8 @@ "use strict"; | ||
}, | ||
intersection: function (members) { | ||
return { | ||
kind: 'intersection', | ||
members: members | ||
}; | ||
}, | ||
typeof: function (type) { | ||
@@ -590,2 +596,5 @@ return { | ||
break; | ||
case "intersection": | ||
writeDelimited(e.members, ' & ', writeUnionReference); | ||
break; | ||
case "typeof": | ||
@@ -592,0 +601,0 @@ print("typeof "); |
@@ -506,2 +506,9 @@ export interface DeclarationBase { | ||
intersection(members: Type[]): IntersectionType { | ||
return { | ||
kind: 'intersection', | ||
members | ||
}; | ||
}, | ||
typeof(type: NamedTypeReference): TypeofReference { | ||
@@ -881,2 +888,6 @@ return { | ||
case "intersection": | ||
writeDelimited(e.members, ' & ', writeUnionReference) | ||
break; | ||
case "typeof": | ||
@@ -883,0 +894,0 @@ print("typeof "); |
{ | ||
"name": "dts-dom", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"homepage": "https://github.com/RyanCavanaugh/dts-dom", | ||
@@ -5,0 +5,0 @@ "description": "DOM for TypeScript Declaration Files", |
@@ -46,2 +46,5 @@ [![npm version](https://badge.fury.io/js/dts-dom.svg)](https://badge.fury.io/js/dts-dom) | ||
## 3.1.1 | ||
* **New Functionality**: Added the ability to emit intersection types | ||
## 3.0.0 | ||
@@ -48,0 +51,0 @@ * **Breaking change**: generic type parameters on methods were incorrectly not being emitted; see #42 |
Sorry, the diff of this file is not supported yet
128464
2526
122