refactor(tooling): [MOD-PLUGIN-01] generate typed plugins with safe output handling

This commit is contained in:
Harvey Zhao committed 2026-09-14 10:19:19 +08:00
1 parent 07d5bfef2e
commit 28c7abb2bb
32 files changed
+958 -161

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import type Artplayer from 'artplayer'
import type { Option, Result } from '../types/api.js'
import './stylesheet'
function {{export}}(_option: Option = {}) {
return (_art: Artplayer): Result => ({ name: '{{export}}' })
}
export default Object.assign({{export}}, { default: {{export}} })