refactor(iframe): [PKG-IFRAME-04] preserve types across module consumers

This commit is contained in:
Harvey Zhao committed 2026-09-13 01:43:09 +08:00
1 parent 1342de94ef
commit 047e2df945
24 files changed
+1496 -69

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import type { RuntimeConstructor } from 'artplayer-tool-iframe'
import type Public from 'artplayer-tool-iframe'
import Implementation from '../../packages/artplayer-tool-iframe/src/index'
// @ts-expect-error Historical callback is non-null; actual runtime permits null. Keep this legacy mismatch explicit.
const oldView: typeof Public = Implementation
const actualView: RuntimeConstructor = Implementation
void [oldView, actualView]