Skip to content

Commit 935d033

Browse files
committed
fix: Add types to the package export map
This commit adds `types` mapping for the package `exports`. It makes the package compatible with the upcoming `node12` module resolution in TypeScript 4.5.0. Closes ReactiveX#6641
1 parent e06a472 commit 935d033

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,43 @@
1616
"sideEffects": false,
1717
"exports": {
1818
".": {
19+
"types": "./dist/types/index.d.ts",
1920
"node": "./dist/cjs/index.js",
2021
"es2015": "./dist/esm/index.js",
2122
"default": "./dist/esm5/index.js"
2223
},
2324
"./ajax": {
25+
"types": "./dist/types/ajax/index.d.ts",
2426
"node": "./dist/cjs/ajax/index.js",
2527
"es2015": "./dist/esm/ajax/index.js",
2628
"default": "./dist/esm5/ajax/index.js"
2729
},
2830
"./fetch": {
31+
"types": "./dist/types/fetch/index.d.ts",
2932
"node": "./dist/cjs/fetch/index.js",
3033
"es2015": "./dist/esm/fetch/index.js",
3134
"default": "./dist/esm5/fetch/index.js"
3235
},
3336
"./operators": {
37+
"types": "./dist/types/operators/index.d.ts",
3438
"node": "./dist/cjs/operators/index.js",
3539
"es2015": "./dist/esm/operators/index.js",
3640
"default": "./dist/esm5/operators/index.js"
3741
},
3842
"./testing": {
43+
"types": "./dist/types/testing/index.d.ts",
3944
"node": "./dist/cjs/testing/index.js",
4045
"es2015": "./dist/esm/testing/index.js",
4146
"default": "./dist/esm5/testing/index.js"
4247
},
4348
"./webSocket": {
49+
"types": "./dist/types/webSocket/index.d.ts",
4450
"node": "./dist/cjs/webSocket/index.js",
4551
"es2015": "./dist/esm/webSocket/index.js",
4652
"default": "./dist/esm5/webSocket/index.js"
4753
},
4854
"./internal/*": {
55+
"types": "./dist/types/internal/*.d.ts",
4956
"node": "./dist/cjs/internal/*.js",
5057
"es2015": "./dist/esm/internal/*.js",
5158
"default": "./dist/esm5/internal/*.js"

0 commit comments

Comments
 (0)