mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 22:06:17 -08:00
refactor(iframe): [PKG-IFRAME-04] preserve types across module consumers
This commit is contained in:
1 parent
1342de94ef
commit
047e2df945
24 files changed
+1496
-69
No files matched your search
@@ -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]
|
||||
Reference in new issue
Block a user