UNPKG

@jeaks03/overseer

Version:

Just another TypeScript Back-End framework

31 lines (30 loc) 839 B
import { UserDetails } from "../security/user-details"; import { Route } from "../routes/route"; import { LifecycleCallbacks } from "../decorators/lifecycle"; export interface Class<T> { new (...args: any[]): T; length: number; name: string; } export interface MetaInstance { __shadowMeta: ShadowMeta; } export interface MetaClass<T> extends Class<T> { prototype: MetaInstance; } export interface UserProvider extends Function { (username: string): UserDetails | Promise<UserDetails>; } export declare const AsyncFunction: Function; export interface ShadowMeta { isRequisite?: boolean; routes?: Route[]; required?: any[] | Array<MetaClass<any>>; lifecycle?: LifecycleCallbacks; } export interface Event extends Function { (): void; } export declare enum EventType { AfterFinishStartup = 0 }