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