1 | declare const decorator: (...args: any[]) => MethodDecorator & PropertyDecorator;
|
2 | /**
|
3 | * Partially applies arguments to a function.
|
4 | * @export
|
5 | * @param {...any[]} partials
|
6 | * @returns {PropertyDecorator}
|
7 | * @example
|
8 | * class MyClass {
|
9 | * lastName: string = 'Schmo';
|
10 | *
|
11 | * @Partial('fn', 'Joe')
|
12 | * fn2: () => string;
|
13 | *
|
14 | * fn(name: string): string {
|
15 | * return `${name} ${this.lastName}`;
|
16 | * }
|
17 | * }
|
18 | *
|
19 | * const myClass = new MyClass();
|
20 | *
|
21 | * myClass.fn2(); //=> 'Joe Schmo'
|
22 | */
|
23 | export declare function Partial(...partials: any[]): PropertyDecorator;
|
24 | export { Partial as partial };
|
25 | export default decorator;
|