UNPKG

621 BTypeScriptView Raw
1import { ReturnTypeFunc, TypeOptions, TypeValueThunk } from "../decorators/types";
2export declare type MetadataKey = "design:type" | "design:returntype" | "design:paramtypes";
3export interface TypeInfo {
4 getType: TypeValueThunk;
5 typeOptions: TypeOptions;
6}
7export interface GetTypeParams {
8 metadataKey: MetadataKey;
9 prototype: Object;
10 propertyKey: string;
11 returnTypeFunc?: ReturnTypeFunc;
12 typeOptions?: TypeOptions;
13 parameterIndex?: number;
14}
15export declare function findType({ metadataKey, prototype, propertyKey, returnTypeFunc, typeOptions, parameterIndex, }: GetTypeParams): TypeInfo;