interface IF_StringObject { [propName: string]: string; } interface IF_CmdItemOptions { pkg: any; } type IF_CmdConfigItemOptions = Array>; interface IF_CmdConfigItem { cmd: string; alias: string; desc: string; action: Function; options?: IF_CmdConfigItemOptions; } interface IF_CmdConfigGetterItem { cmd: string; // 指令 alias: string; // 别名 desc: string; // 描述 fn?: Function; // 自注册执行函数 cmdFnsKey?: string; // 执行函数名 onlyAction?: boolean; // 只有 action,处理 options options?: IF_CmdConfigItemOptions; // options optionMode?: 'zeroOrSingle' // {0, 1} | 'single' // {1} | 'singleInput' // {1} _ | 'any' // {0, n} ; } interface IF_LEVEL_DB_OBJ { path: string; // level path key: string; // level key desc?: string; // storeType: string; // cmd store type showInHelp: boolean; setter: Function; getter: Function; } type CATE = 'html' | 'css' | 'js'; interface IF_HLItem { category: CATE; content: string; } interface IF_HL_Format_Opts { mdMode?: boolean; } interface IF_NOS_CLIENT_ORIGIN_OPTIONS { cdnAppId: string; } interface IF_NOS_CLIENT_CDN_OPTIONS { objectKeyPrefix: string; } interface IF_NOS_NEED_PUT_FILE_INFO { body: Buffer; filePath: string; } declare namespace NodeJS { interface Global { pkg: { name: string; version: string; } locales: string[], locale: string, } }