refactor(tooling): [MOD-02] split library build and development into typed modules

This commit is contained in:
Harvey Zhao committed 2026-09-14 10:46:25 +08:00
1 parent 28c7abb2bb
commit 401d4cdd65
36 files changed
+1644 -427

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// Only the installed APIs used by library tooling; not general SDK declarations.
declare module 'prompts' {
export default function prompts(question: {
type: 'select'
name: 'value'
message: string
choices: { title: string, value: string }[]
}): Promise<{ value?: string }>
}
declare module 'servor' {
export default function servor(options: {
root: string
fallback: string
reload: boolean
port: number
}): Promise<{ url: string }>
}
declare module 'servor/utils/openBrowser.js' {
export default function openBrowser(url: string): true | undefined
}