UNPKG

@mediarithmics/plugins-nodejs-sdk

Version:

This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate

9 lines (8 loc) 406 B
export type Index<T> = { [key: string]: T; }; export type Option<T> = T | undefined; export declare const map: <A, B>(a: Option<A>, f: (a: A) => B) => Option<B>; export declare const flatMap: <A, B>(a: Option<A>, f: (a: A) => Option<B>) => Option<B>; export declare const getOrElse: <T>(t: Option<T>, _default: T) => T; export declare const obfuscateString: (rawString?: string) => string | undefined;