inbrain-surveys
Version:
In-App monetization via surveys, powered by inBrain.ai.
14 lines (13 loc) • 588 B
TypeScript
export declare const assertIsColor: (color: string) => void;
/**
* Assert the value is not null or empty
* @param attributeName name of attribute for logging purpose
* @param attributevalue value of attribute
*/
export declare const assertNotNullNorEmpty: (attributeName: string, attributeValue: string) => void;
/**
* Wrap a promise call to add common functionnalities
* @param promise promise to call
*/
export type PromiseSupplier<T> = () => Promise<T>;
export declare const wrapPromise: <T extends void | {}>(promiseSupplier: PromiseSupplier<T>, count?: number) => Promise<T>;