doddle
Version:
Tiny yet feature-packed (async) iteration toolkit.
13 lines • 788 B
TypeScript
/** Minimal ES decorator context for class getters/methods used here. */
export interface ClassGetterDecoratorContext {
/** Decorated element kind. We support getters and zero-arg methods. */
readonly kind: "getter" | "method";
/** Class member name or symbol. */
readonly name?: string | symbol;
/** Whether the member is static. */
readonly static?: boolean;
}
export declare function doddlify(target: any, key: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor | void;
export declare function doddlify(value: (this: any) => any, context: ClassGetterDecoratorContext): (this: any) => any;
export declare function doddlify(value: (this: any) => any, context: ClassGetterDecoratorContext): (this: any) => any;
//# sourceMappingURL=index.d.ts.map