refactor(dash): [PKG-DASH-04] migrate strict TypeScript and compatible declarations

This commit is contained in:
Harvey Zhao committed 2026-09-12 05:18:47 +08:00
1 parent 7de04573b6
commit 6840544e0e
38 files changed
+1744 -102

No files matched your search

@@ -19,19 +19,36 @@
],
"exports": {
".": {
"types": "./types/artplayer-plugin-dash-control.d.ts",
"import": "./dist/artplayer-plugin-dash-control.mjs",
"require": "./dist/artplayer-plugin-dash-control.js"
"import": {
"types": "./types/artplayer-plugin-dash-control.d.mts",
"default": "./dist/artplayer-plugin-dash-control.mjs"
},
"require": {
"types": "./types/artplayer-plugin-dash-control.d.cts",
"default": "./dist/artplayer-plugin-dash-control.js"
}
},
"./legacy": {
"types": "./types/artplayer-plugin-dash-control.d.ts",
"import": "./dist/artplayer-plugin-dash-control.legacy.js",
"require": "./dist/artplayer-plugin-dash-control.legacy.js"
"import": {
"types": "./types/artplayer-plugin-dash-control.d.cts",
"default": "./dist/artplayer-plugin-dash-control.legacy.js"
},
"require": {
"types": "./types/artplayer-plugin-dash-control.d.cts",
"default": "./dist/artplayer-plugin-dash-control.legacy.js"
}
}
},
"main": "./dist/artplayer-plugin-dash-control.js",
"module": "./dist/artplayer-plugin-dash-control.mjs",
"types": "./types/artplayer-plugin-dash-control.d.ts",
"legacy": "./dist/artplayer-plugin-dash-control.legacy.js",
"browserslist": "last 1 Chrome version"
"browserslist": "last 1 Chrome version",
"typesVersions": {
"*": {
"legacy": [
"types/artplayer-plugin-dash-control.d.ts"
]
}
}
}