UNPKG

lakutata

Version:

An IoC-based universal application framework.

36 lines (30 loc) 1.12 kB
import '../vendor/TypeDef.2.js'; import { D as DTO, S as Schema } from '../vendor/TypeDef.5.js'; import { C as ClassDecorator, P as PropertyDecorator } from '../vendor/TypeDef.12.js'; import { M as MethodDecorator } from '../vendor/TypeDef.10.js'; import '../vendor/TypeDef.11.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 };