mirror of
https://github.com/motajs/template.git
synced 2026-11-02 15:04:30 +08:00
refactor: 客户端加载
This commit is contained in:
1 parent
fdeee99d40
commit
4fc6db3e79
55 files changed
+1699
-1234
No files matched your search
+5
-5
@@ -590,11 +590,11 @@ async function doDeclaration(type: string, data: string) {
|
||||
'src/types/source/data.d.ts',
|
||||
`
|
||||
${floorId}
|
||||
${d.images.length > 0 ? imgs : 'type ImageIds = never\n'}
|
||||
${d.animates.length > 0 ? anis : 'type AnimationIds = never\n'}
|
||||
${d.sounds.length > 0 ? sounds : 'type SoundIds = never\n'}
|
||||
${d.bgms.length > 0 ? bgms : 'type BgmIds = never\n'}
|
||||
${d.fonts.length > 0 ? fonts : 'type FontIds = never\n'}
|
||||
${d.images.length > 0 ? imgs : 'type ImageIds = string;\n'}
|
||||
${d.animates.length > 0 ? anis : 'type AnimationIds = string;\n'}
|
||||
${d.sounds.length > 0 ? sounds : 'type SoundIds = string;\n'}
|
||||
${d.bgms.length > 0 ? bgms : 'type BgmIds = string;\n'}
|
||||
${d.fonts.length > 0 ? fonts : 'type FontIds = string;\n'}
|
||||
${names}
|
||||
`,
|
||||
'utf-8'
|
||||
|
||||
Reference in new issue
Block a user