Minor TypeScript definition tweak

This commit is contained in:
Sindre Sorhus 2019-06-07 14:44:51 +07:00
parent bd197bb9c1
commit 21c1db5aa0
2 changed files with 3 additions and 3 deletions

4
index.d.ts vendored
View File

@ -41,10 +41,10 @@ declare const pDefer: {
})(); })();
``` ```
*/ */
<ValueType = unknown>(): pDefer.DeferredPromise<ValueType>; <ValueType>(): pDefer.DeferredPromise<ValueType>;
// TODO: Remove this for the next major release, refactor the whole definition to: // TODO: Remove this for the next major release, refactor the whole definition to:
// declare function pDefer<ValueType = unknown>(): pDefer.DeferredPromise< // declare function pDefer<ValueType>(): pDefer.DeferredPromise<
// ValueType // ValueType
// >; // >;
// export = pDefer; // export = pDefer;

View File

@ -33,7 +33,7 @@
"bluebird" "bluebird"
], ],
"devDependencies": { "devDependencies": {
"ava": "^1.4.1", "ava": "^2.0.0",
"tsd": "^0.7.2", "tsd": "^0.7.2",
"xo": "^0.24.0" "xo": "^0.24.0"
} }