UNPKG

dazjsx

Version:

参考nestjs,基于KOA2的一款轻量级的后端开发框架

13 lines (12 loc) 570 B
/// <reference types="node" /> import { IocOption, Param } from '..'; import { BaseRequest } from 'koa'; export declare class Tool { static isNotEmptyArray<T = unknown>(val: T): any; static isNotEmptyObject<T = unknown>(val: T): boolean; static isIoc<T>(val: IocOption<T>): boolean; static waiting(time?: number): Promise<NodeJS.Timeout>; static getController(prefix: string, name: string): string; static getPath(prefix: string, path: string): string; static getParams(request: BaseRequest, type: Param): (key: string) => any; }