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:
// declare function pDefer<ValueType = unknown>(): pDefer.DeferredPromise<
// declare function pDefer<ValueType>(): pDefer.DeferredPromise<
// ValueType
// >;
// export = pDefer;

View File

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