@ghostry/finity-reactjs
Version:
Finite state management with exhaustiveness and transition enforcement for TypeScript.
18 lines (17 loc) • 571 B
TypeScript
import * as Core from '@ghostry/finity-core';
import type { Config } from './Types.ts';
import $useRender from './useRender.ts';
/**
* Initialization of the library returns these set of functions.
*/
export interface Initialized extends Core.Initialized {
/**
* A component hook to render JSX based on the current state.
*/
useRender: ReturnType<typeof $useRender>;
}
/**
* Initializes an instance of the usable library API for ReactJS according
* to the provided configuration.
*/
export declare const initialize: (config: Config) => Initialized;