Skip to content

Commit 6b90a5d

Browse files
committed
feat: include type defintion
1 parent 71fab2a commit 6b90a5d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
},
3737
"main": "lib/xhr2.js",
3838
"browser": "lib/browser.js",
39+
"typings": "xhr2.d.ts",
3940
"directories": {
4041
"doc": "doc",
4142
"lib": "lib",

xhr2.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export class XMLHttpRequest {
2+
nodejsSet(url: any): any;
3+
}

0 commit comments

Comments
 (0)