nestedreact
Version:
Advanced models, state management, and data binding solution for React
12 lines (11 loc) • 400 B
TypeScript
import { Store } from 'type-r';
import { ComponentClass } from './common';
export interface StoreDefinition {
store?: typeof Store | Store | object;
Store?: typeof Store;
}
export interface StoreProto {
store?: Store;
Store?: typeof Store;
}
export default function onDefine(this: ComponentClass<StoreProto>, definition: StoreDefinition, BaseClass: ComponentClass<StoreProto>): void;