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