apphouse
Version:
Component library for React that uses observable state management and theme-able components.
8 lines (7 loc) • 311 B
TypeScript
/**
* A function that saves a string into a downloadable file
* The download will be a json file and will start automatically
* @param content string to be saved
* @param filename optional the name of the file to be saved
*/
export declare const downloadJson: (content: string, filename?: string) => void;