Skip to main content

Types

Resolvable<T>#

export type Resolvable<R> = R | PromiseLike<R>;

Resolver<T>#

export type Resolver<R> = (thenableOrResult?: Resolvable<R>) => void;

Rejector#

export type Rejector = (error?: any) => void;

ExpressiveTeaModuleClass<T>#

export type ExpressiveTeaModuleClass<T> = new (...args: any[]) => T;

ExpressMiddlewareHandler#

export type ExpressMiddlewareHandler = (request?: Request, response?: Response, next?: NextFunction) => void;

ExpressiveTeaMiddleware#

export type ExpressiveTeaMiddleware = (...args: unknown[]) => unknown | Promise<unknown>;

ClassDecorator#

export type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;

PropertyDecorator#

export type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;

MethodDecorator#

export type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor | void;

ParameterDecorator#

export type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;