fix(types): PKG-CHAPTER-04 preserve CJS ESM and legacy consumer contracts

This commit is contained in:
Harvey Zhao committed 2026-09-10 23:29:06 +08:00
1 parent 48660c4e12
commit bab80ff886
41 files changed
+1087 -119

No files matched your search

+10
View File
@@ -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]