mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
/// <reference path="FileSaver.d.ts" />
|
|
|
|
/**
|
|
* @summary Test for "saveAs" function.
|
|
*/
|
|
function testSaveAs() {
|
|
var data: Blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
var filename: string = 'hello world.txt';
|
|
var disableAutoBOM = true;
|
|
|
|
saveAs(data, filename, disableAutoBOM);
|
|
}
|