UNPKG

impair

Version:

A framework for building React applications with OOP principles and a layered architecture.

19 lines (18 loc) 610 B
import { Dictionary } from '../types'; export type StateType = 'shallow' | 'deep' | 'atom'; export type StateMetadata = { propertyKey: string; type: StateType; }; export declare function state(target: any, propertyKey: string): any; export declare namespace state { var shallow: typeof shallowState; var atom: typeof atomState; } declare function shallowState(target: any, propertyKey: string): any; declare function atomState(target: any, propertyKey: string): any; type InitParams = { instance: Dictionary; }; export declare function initState({ instance }: InitParams): void; export {};