reactrators
Version:
A React library for composing and enhancing components with flexible and chainable functions. Simplify the process of injecting functionality and props into React components by providing a composable utility for building component enhancers.
6 lines (5 loc) • 315 B
text/typescript
export type InjectableParams = Record<string, any>;
export type InjectableFunction = (params?: InjectableParams) => InjectableParams;
export type InjectableEntry = [InjectableFunction, InjectableParams];
export type EnhancedProps = { [key: string]: any; };
export type ComposableOptions = { chainable?: boolean; };