UNPKG

370 BTypeScriptView Raw
1import { TypeHelpOptions, TypeOptions } from '../interfaces';
2/**
3 * Specifies a type of the property.
4 * The given TypeFunction can return a constructor. A discriminator can be given in the options.
5 *
6 * Can be applied to properties only.
7 */
8export declare function Type(typeFunction?: (type?: TypeHelpOptions) => Function, options?: TypeOptions): PropertyDecorator;