UNPKG

ayanami

Version:
7 lines (6 loc) 516 B
import { ActionSymbols } from '../symbols'; import { Ayanami } from '../ayanami'; import { ConstructorOf } from '../types'; export declare function createActionDecorator(symbols: ActionSymbols): () => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; export declare function getActionNames<T extends Ayanami<any>>(symbols: ActionSymbols, constructor: ConstructorOf<T>): (keyof T)[]; export declare function getAllActionNames<T extends Ayanami<any>>(instance: T): (keyof T)[];