Create TypeScript declarations from JSDoc (#45)
This commit is contained in:
+1
-2
@@ -62,5 +62,4 @@ typings/
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
index.d.ts
|
||||
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
/// <reference lib="dom"/>
|
||||
|
||||
/* global Blob */
|
||||
export = Blob;
|
||||
@@ -129,7 +129,7 @@ class Blob {
|
||||
*
|
||||
* @param {number} [start]
|
||||
* @param {number} [end]
|
||||
* @param {string} [contentType]
|
||||
* @param {string} [type]
|
||||
*/
|
||||
slice(start = 0, end = this.size, type = '') {
|
||||
const {size} = this;
|
||||
|
||||
+3
-1
@@ -11,7 +11,8 @@
|
||||
"lint": "xo",
|
||||
"test": "xo && ava",
|
||||
"report": "nyc ava",
|
||||
"coverage": "nyc --reporter json --reporter text ava && codecov -f coverage/coverage-final.json"
|
||||
"coverage": "nyc --reporter json --reporter text ava && codecov -f coverage/coverage-final.json",
|
||||
"prepublishOnly": "tsc --declaration --emitDeclarationOnly --allowJs index.js"
|
||||
},
|
||||
"repository": "https://github.com/node-fetch/fetch-blob.git",
|
||||
"keywords": [
|
||||
@@ -33,6 +34,7 @@
|
||||
"get-stream": "^5.1.0",
|
||||
"node-fetch": "^2.6.0",
|
||||
"nyc": "^15.0.1",
|
||||
"typescript": "^3.9.5",
|
||||
"xo": "^0.32.0"
|
||||
},
|
||||
"xo": {
|
||||
|
||||
Reference in New Issue
Block a user