UNPKG

pricing4react

Version:

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

15 lines (14 loc) 494 B
import { NAryFunction } from "./NAryFunction"; import { ResultValue } from "./ResultValue"; export declare class Feature implements NAryFunction<boolean> { featureId: string; constructor(featureId: string); eval(): Promise<ResultValue<boolean>>; equals(other: NAryFunction<any>): boolean; } /** * NAryFunction that returns a feature boolean value. * @param featureId Id of the feature * @returns */ export declare function feature(featureId: string): NAryFunction<boolean>;