@magnusbag/livets-core
Version:
TypeScript API layer for LiveTS framework
20 lines • 765 B
TypeScript
/**
* Decorators for LiveTS components
*/
/**
* Decorator for marking methods as event handlers
*/
export declare function Event(eventName: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Decorator for marking methods as lifecycle hooks
*/
export declare function Lifecycle(hook: 'mount' | 'updated' | 'unmount'): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
/**
* Decorator for component state properties
*/
export declare function State(): (target: any, propertyKey: string) => void;
/**
* Decorator for computed properties
*/
export declare function Computed(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
//# sourceMappingURL=decorators.d.ts.map