useExcelWriter
warning
This hook is in the experimental stage.
- This is a hook that provides a function to generate
Excelfiles.
Features
- It offers a function to create an
Excelfile from data inJSONformat.
Types
const useExcelWriter: <T extends Partial<Column> & {
key: string;
}>() => {
writer: (cols: T[], rows: Record<T["key"], string | number | null | undefined>[], options: {
worksheet?: Partial<AddWorksheetOptions> & {
name?: string;
};
excelName?: string;
}) => Promise<...>;
}