UNPKG

@report-toolkit/transformers

Version:

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

30 lines (29 loc) 853 B
/** * @type {TransformerMeta} */ export const meta: TransformerMeta; /** * Emits a single JSON blob. * @param {Partial<JSONTransformOptions>} [opts] * @type {TransformFunction<object,string>} */ export const transform: TransformFunction<object, string>; export type JSONTransformOptions = { fields: TransformerField[]; pretty: 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>;