Skip to content

Commit 87803a9

Browse files
committed
feat: include type defintion
1 parent 71fab2a commit 87803a9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
},
3737
"main": "lib/xhr2.js",
3838
"browser": "lib/browser.js",
39+
"typings": "xhr2.d.ts",
40+
"typescript": { "definition": "xhr2.d.ts" },
3941
"directories": {
4042
"doc": "doc",
4143
"lib": "lib",

xhr2.d.ts

Lines changed: 3 additions & 0 deletions
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)