File tree 3 files changed +23
-2
lines changed
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 45
45
"url" : " https://github.com/ykzts/node-xmlhttprequest.git"
46
46
},
47
47
"scripts" : {
48
- "build" : " microbundle --strict --target node src/index.ts src/browser.ts" ,
48
+ "build" : " microbundle --no-generate-types -- strict --target node src/index.ts src/browser.ts" ,
49
49
"format" : " prettier --write ." ,
50
50
"format-check" : " prettier --check ." ,
51
51
"lint" : " eslint ." ,
52
52
"prepare" : " is-ci || husky install" ,
53
53
"test" : " jest"
54
54
},
55
55
"source" : " ./src/index.ts" ,
56
- "types" : " ./dist /index.d.ts" ,
56
+ "types" : " ./types /index.d.ts" ,
57
57
"unpkg" : " ./dist/index.umd.js" ,
58
58
"version" : " 3.0.0"
59
59
}
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"allowJs" : false ,
4
4
"baseUrl" : " ." ,
5
+ "declaration" : false ,
6
+ "declarationDir" : null ,
5
7
"esModuleInterop" : true ,
6
8
"module" : " esnext" ,
7
9
"noEmit" : true ,
Original file line number Diff line number Diff line change
1
+ export declare const XMLHttpRequest : {
2
+ new ( ) : XMLHttpRequest ;
3
+ prototype : XMLHttpRequest ;
4
+ readonly DONE : number ;
5
+ readonly HEADERS_RECEIVED : number ;
6
+ readonly LOADING : number ;
7
+ readonly OPENED : number ;
8
+ readonly UNSENT : number ;
9
+ } ;
10
+
11
+ export declare const XMLHttpRequestUpload : {
12
+ new ( ) : XMLHttpRequestUpload ;
13
+ prototype : XMLHttpRequestUpload ;
14
+ } ;
15
+
16
+ export declare const FormData : {
17
+ new ( form ?: HTMLFormElement ) : FormData ;
18
+ prototype : FormData ;
19
+ } ;
You can’t perform that action at this time.
0 commit comments