react-storm
Version:
A small storm in the React Store world
15 lines (14 loc) • 703 B
TypeScript
import { ModelMeta } from "./meta";
export declare class Models {
private static _modelsCache;
static defineModel(target: any, dependencies: any[]): void;
static defineField(target: any, propertyKey: string): void;
static defineAction(target: any, propertyKey: string): void;
static getMeta<TModel>(TCreator: {
new (...args: any[]): TModel;
}): ModelMeta<TModel>;
private static resolveMeta;
}
export declare function Model(): <T extends Object>(target: T) => void;
export declare function Field(): (target: any, propertyKey: string) => void;
export declare function Action(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;