Skip to content

Conversation

@iulo
Copy link

@iulo iulo commented Nov 27, 2025

导出常用枚举

PLAYER_FILL_MODEPLAYER_PLAY_MODE 是传递option时的值,如果直接传字符串,类型会校验不过,需要as any

导出常用类型

目前的打包方式types.ts内的类型只能强行使用 import { PlayerConfigOptions } from 'svga/dist/types',不符合node的现代包解析规范,在一些打包工具中也会有warning,例如vite会报 Error: The following dependencies are imported but could not be resolved:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant