You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Target is a decorator which - when assigned to a property field on the
* class - will override that class field, turning it into a Getter which
* returns a call to `findTarget(this, key)` where `key` is the name of the
* property field. In other words, `@target foo` becomes a getter for
* `findTarget(this, 'foo')`.
*/
- export declare function target<K extends string>(proto: Record<K, unknown>, key: K): Record<K, unknown>;+ export declare function target<K extends string>(proto: Record<K, unknown>, key: K): void;
/**
* Targets is a decorator which - when assigned to a property field on the
* class - will override that class field, turning it into a Getter which
* returns a call to `findTargets(this, key)` where `key` is the name of the
* property field. In other words, `@targets foo` becomes a getter for
* `findTargets(this, 'foo')`.
*/
- export declare function targets<K extends string>(proto: Record<K, unknown>, key: K): Record<K, unknown>;+ export declare function targets<K extends string>(proto: Record<K, unknown>, key: K): void;
//# sourceMappingURL=target.d.ts.map