mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
29 lines
593 B
TypeScript
29 lines
593 B
TypeScript
declare global {
|
|
namespace NodeJS {
|
|
interface Global {
|
|
Hydro: {
|
|
model: any
|
|
handler: any
|
|
script: any
|
|
service: any
|
|
lib: any
|
|
stat: any
|
|
wiki: any
|
|
template: any
|
|
ui: any
|
|
error: any
|
|
locales: any
|
|
}
|
|
nodeModules: any
|
|
onDestory: Function[]
|
|
isFirstWorker: boolean
|
|
}
|
|
}
|
|
}
|
|
|
|
declare module 'cluster' {
|
|
let isFirstWorker: boolean;
|
|
}
|
|
|
|
export { };
|