subjectize
Version:
TypeScript decorators for binding RxJS Subject with class properties
12 lines (11 loc) • 319 B
TypeScript
/**
* Make a {@link Subject}-like property that watches all values of the property in `keys`.
*
* @remarks
* E.g.
* ```
* @SubjectizeProps(['someProp', 'anotherProp'])
* public prop$ = new ReplaySubject<[string, any]>(1);
* ```
*/
export declare function SubjectizeProps<T>(keys: string[]): PropertyDecorator;