mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
fix(types): PKG-CHAPTER-04 preserve CJS ESM and legacy consumer contracts
This commit is contained in:
1 parent
48660c4e12
commit
bab80ff886
41 files changed
+1087
-119
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import type { I18n } from 'artplayer'
|
||||
import french from 'artplayer/i18n/fr'
|
||||
|
||||
const dictionary: NonNullable<I18n['en']> = french
|
||||
const close: string | undefined = french.Close
|
||||
// @ts-expect-error Translation values cannot be numbers.
|
||||
const numeric: number = french.Close
|
||||
// @ts-expect-error Language values do not have a permissive arbitrary-key index.
|
||||
const missing = french.notATranslation
|
||||
void [dictionary, close, numeric, missing]
|
||||
Reference in new issue
Block a user