UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

11 lines (10 loc) 334 B
export type CSVColumn = { id: string; label?: string; valueToString?: (value: any) => string; }; export type CSVRow = { values: Record<string, any>; }; export declare function dataToCSVLink(columns: CSVColumn[], rows: CSVRow[]): string; export declare function dataToCSV(columns: CSVColumn[], rows: CSVRow[]): string;