UNPKG

626 BTypeScriptView Raw
1export interface LockfileOptions {
2 sync?: boolean;
3}
4export declare function lockfile(prop: string, opts?: LockfileOptions): MethodDecorator;
5export interface RWLockfileOptions {
6 ifLocked?: string;
7}
8export declare function rwlockfile(prop: string, type: 'read' | 'write', opts?: RWLockfileOptions): MethodDecorator;
9export declare function onceAtATime(argKey?: number): MethodDecorator;
10export interface IDecoratorOptions<T> {
11 target: Object;
12 propertyName: string | symbol;
13 descriptor: TypedPropertyDescriptor<T>;
14 original: T;
15}
16export interface IDecorator<T> {
17 (opts: IDecoratorOptions<T>): T;
18}