launch.io
Version:
Launch.IO is an Ultra Hip, Simple, and Fast, Time Traveling React State Management Library
11 lines (10 loc) • 794 B
TypeScript
import { LaunchOptions, Service, ServiceApi } from "../types";
/**
* Takes an `array` of application services and creates a Launch.IO service API abstraction for the Launch.IO Provider component.
* @param {Array} services An `array` of application services. Each service object will consist of `name` (`string`), `initialState` (`object`), and `actions` (`object` of `functions`) properties.
* @param {Object} options A `Launch.IO` `LaunchOptions` object.
* @param {Boolean} options.enableTimeTravel Enable Launch.IO Time Travel Debugging.
* @param {Boolean} options.timeTravelHistoryLimit Number of Launch.IO time travel actions that are stored in history.
*/
declare const createServiceApi: (services: Service[], options: LaunchOptions) => ServiceApi;
export default createServiceApi;