apphouse
Version:
Component library for React that uses observable state management and theme-able components.
10 lines (9 loc) • 564 B
TypeScript
/**
* A function that saves a string into a downloadable file
* The download will have the extension specified or default to tx
* The download and will start automatically
* @param content string contents to be saved in the file
* @param extension optional the extension of the file to be saved, if not specified, it will default to txt
* @param filename optional the name of the file to be saved, if not specified, it will default to the current date
*/
export declare const saveContentAs: (content: string, filename?: string, extension?: string) => void;