UNPKG

lakutata

Version:

An IoC-based universal application framework.

34 lines (28 loc) 1.03 kB
import { DTO } from './TypeDef.internal.96.js'; import { ClassDecorator, MethodDecorator, PropertyDecorator } from './TypeDef.internal.100.js'; import { Schema } from './TypeDef.internal.129.js'; /** * Class Decorator * @param schema * @constructor */ declare function IndexSignature<ClassConstructor extends typeof DTO>(schema: Schema): ClassDecorator<ClassConstructor>; /** * Method Decorator * @param defs * @constructor */ declare function Accept<ClassPrototype, DTOConstructor extends typeof DTO, Method>(...defs: (DTOConstructor | Schema)[]): MethodDecorator<ClassPrototype, Method>; /** * Property Decorator * @param schema * @constructor */ declare function Expect<ClassPrototype extends DTO>(schema: Schema): PropertyDecorator<ClassPrototype>; /** * Method Decorator * @param def * @constructor */ declare function Return<ClassPrototype, DTOConstructor extends typeof DTO, Method>(def: DTOConstructor | Schema): MethodDecorator<ClassPrototype, Method>; export { Accept, Expect, IndexSignature, Return };