- createState<C>(type, ...rest): ((state: StateManager<MFC>) => InstanceType<C>)
Type Parameters
- C extends StateConstructor
Parameters
- type: C
Rest
...rest: Tail<ConstructorParameters<C>>
Returns ((state: StateManager<MFC>) => InstanceType<C>)
- (state): InstanceType<C>
Returns InstanceType<C>