@stnekroman/tstools
Version:
Set of handy tools for TypeScript development
12 lines (11 loc) • 426 B
text/typescript
export type TypedPropertyDecorator<C> = (target: C, propertyKey: keyof C | string | symbol) => void;
export type TypedMethodDecorator<C> = <T>(
target: C,
propertyKey: keyof C | string | symbol,
descriptor: TypedPropertyDescriptor<T>
) => TypedPropertyDescriptor<T> | void;
export type TypedParameterDecorator<C> = (
target: C,
propertyKey: keyof C | string | symbol | undefined,
parameterIndex: number
) => void;