UNPKG

@decorators/server

Version:

node decorators - decorators for express library

10 lines (9 loc) 663 B
import { ClassConstructor, Handler } from './types'; export declare function addLeadingSlash(url: string): string; export declare function buildUrl(...paths: string[]): string; export declare function asyncMap<T>(iterables: unknown[], func: (iterable: unknown, i?: number) => Promise<T>): Promise<T[]>; export declare function toStandardType(param: unknown): unknown; export declare function extractParamNames(handler: Handler): string[]; export declare function isClass(type: Handler | ClassConstructor): boolean; export declare function isFunction(type: Handler | ClassConstructor): boolean; export declare function isEnum(type: object, val: unknown): boolean;