UNPKG

678 BTypeScriptView Raw
1import { ReturnTypeFunc, DescriptionOptions } from "../decorators/types";
2export interface TypeDecoratorParams<T> {
3 options: Partial<T>;
4 returnTypeFunc?: ReturnTypeFunc;
5}
6export declare function getTypeDecoratorParams<T extends object>(returnTypeFuncOrOptions: ReturnTypeFunc | T | undefined, maybeOptions: T | undefined): TypeDecoratorParams<T>;
7export declare function getNameDecoratorParams<T extends DescriptionOptions>(nameOrOptions: string | T | undefined, maybeOptions: T | undefined): {
8 name: string;
9 options: T;
10} | {
11 options: T;
12 name?: undefined;
13};
14export declare function getArrayFromOverloadedRest<T>(overloadedArray: Array<T | T[]>): T[];