UNPKG

pricing4react

Version:

A library of components that ease the integration of feature toggling driven by pricing plans into your React application's UI.

12 lines (11 loc) 300 B
export type ResultValue<T> = { value: T; isError: false; errorMessage?: undefined; } | { value?: undefined; isError: true; errorMessage: string; }; export declare function error(message: string): ResultValue<never>; export declare function value<T>(value: T): ResultValue<T>;