UNPKG

@report-toolkit/transformers

Version:

See docs at [https://ibm.github.io/report-toolkit](https://ibm.github.io/report-toolkit)

32 lines (31 loc) 987 B
/** * @type {TransformerMeta} */ export const meta: TransformerMeta; /** * Newline parser; given whatever, output a string ending with newline (or `newline` of your choice) * @param {Partial<NewlineTransformOptions>} [opts] * @type {TransformFunction<any,string>} */ export const transform: TransformFunction<any, string>; export type NewlineTransformOptions = { /** * - If true, force-stringify the value. Objects will always be stringified */ json: boolean; }; export type Report = import("../../diff/node_modules/@report-toolkit/common/src/report.js").Report; export type TransformerMeta = { id: string; description?: string; input?: string[]; output: string; alias?: string[]; defaults?: any; }; export type TransformerField = { label: string; value: string | ((arg0: any) => string); color?: string | ((arg0: any) => string); }; export type TransformFunction<T, U> = (opts?: any) => import("rxjs").OperatorFunction<T, U>;