UNPKG

pricing4react

Version:

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

6 lines (5 loc) 733 B
import { NAryFunction } from "./NAryFunction"; export type AttributeValue = number | string; export declare function numberFunction<T>(left: NAryFunction<number> | number, right: NAryFunction<number> | number, factory: (left: NAryFunction<number>, right: NAryFunction<number>) => T): T; export declare function booleanFunction<T>(left: NAryFunction<boolean> | boolean, right: NAryFunction<boolean> | boolean, factory: (left: NAryFunction<boolean>, right: NAryFunction<boolean>) => T): T; export declare function attrValueFunction<T>(left: NAryFunction<AttributeValue> | AttributeValue, right: NAryFunction<AttributeValue> | AttributeValue, factory: (left: NAryFunction<AttributeValue>, right: NAryFunction<AttributeValue>) => T): T;