UNPKG

mobx

Version:

Simple, scalable state management.

4 lines (3 loc) 368 B
import type { Annotation } from "./annotation"; export type DecoratorAnnotation<Decorator extends (...args: any[]) => any> = Annotation & Decorator; export declare function createDecoratorAnnotation<Decorator extends (...args: any[]) => any>(annotation: Annotation, decorate: (annotation: Annotation, value: any, context: any) => any): DecoratorAnnotation<Decorator>;