Comparing version 0.1.24 to 0.1.25
@@ -499,2 +499,12 @@ "use strict"; | ||
} | ||
function writeUnionReference(d) { | ||
if (typeof d !== "string" && d.kind === "function-type") { | ||
print('('); | ||
writeReference(d); | ||
print(')'); | ||
} | ||
else { | ||
writeReference(d); | ||
} | ||
} | ||
function writeReference(d) { | ||
@@ -540,3 +550,3 @@ if (typeof d === 'string') { | ||
case "union": | ||
writeDelimited(e.members, ' | ', writeReference); | ||
writeDelimited(e.members, ' | ', writeUnionReference); | ||
break; | ||
@@ -543,0 +553,0 @@ case "typeof": |
@@ -752,2 +752,12 @@ export interface DeclarationBase { | ||
function writeUnionReference(d: Type) { | ||
if (typeof d !== "string" && d.kind === "function-type") { | ||
print('(') | ||
writeReference(d) | ||
print(')') | ||
} else { | ||
writeReference(d) | ||
} | ||
} | ||
function writeReference(d: Type) { | ||
@@ -793,3 +803,3 @@ if (typeof d === 'string') { | ||
case "union": | ||
writeDelimited(e.members, ' | ', writeReference); | ||
writeDelimited(e.members, ' | ', writeUnionReference); | ||
break; | ||
@@ -796,0 +806,0 @@ |
{ | ||
"name": "dts-dom", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"homepage": "https://github.com/RyanCavanaugh/dts-dom", | ||
@@ -11,3 +11,3 @@ "description": "DOM for TypeScript Declaration Files", | ||
"prepublish": "npm run build", | ||
"test": "mocha --compilers=ts:ts-node/register --no-timeouts test/**/test.*.ts" | ||
"test": "jest --coverage" | ||
}, | ||
@@ -21,10 +21,22 @@ "author": "Ryan Cavanaugh", | ||
"devDependencies": { | ||
"@types/chai": "^4.0.7", | ||
"@types/mocha": "^2.2.44", | ||
"@types/node": "^8.0.54", | ||
"chai": "^4.1.2", | ||
"mocha": "^4.0.1", | ||
"ts-node": "^3.3.0", | ||
"@types/jest": "^22.0.1", | ||
"jest": "^22.1.3", | ||
"ts-jest": "^22.0.1", | ||
"typescript": "^2.6.2" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js", | ||
"json" | ||
], | ||
"mapCoverage": true, | ||
"collectCoverageFrom": [ | ||
"lib/**/*.ts" | ||
] | ||
} | ||
} |
@@ -57,1 +57,2 @@ [![npm version](https://badge.fury.io/js/dts-dom.svg)](https://badge.fury.io/js/dts-dom) | ||
* [Jeremy Danyow](https://www.github.com/jdanyow) | ||
* [Hendrik Liebau](https://github.com/KingHenne) |
@@ -7,5 +7,3 @@ { | ||
"types": [ | ||
"@types/node", | ||
"@types/mocha", | ||
"@types/chai" | ||
"@types/node" | ||
], | ||
@@ -12,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113145
4
20
2271
58