source: node_modules/ts-mixer/dist/esm/decorator.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 17 months ago

Initial commit

  • Property mode set to 100644
File size: 786 bytes
Line 
1import { Class } from './types';
2type ObjectOfDecorators<T extends PropertyDecorator | MethodDecorator> = {
3 [key: string]: T[];
4};
5export type PropertyAndMethodDecorators = {
6 property?: ObjectOfDecorators<PropertyDecorator>;
7 method?: ObjectOfDecorators<MethodDecorator>;
8};
9type Decorators = {
10 class?: ClassDecorator[];
11 static?: PropertyAndMethodDecorators;
12 instance?: PropertyAndMethodDecorators;
13};
14export declare const deepDecoratorSearch: (...classes: Class[]) => Decorators;
15export declare const directDecoratorSearch: (...classes: Class[]) => Decorators;
16export declare const getDecoratorsForClass: (clazz: Class) => Decorators;
17export declare const decorate: <T extends PropertyDecorator | MethodDecorator | ClassDecorator>(decorator: T) => T;
18export {};
Note: See TracBrowser for help on using the repository browser.