[btoa] Exporting the function in the legacy style

This definition was incorrectly declaring the function as a default
export, as opposed to a legacy-style on the exports directly.

Closes #28648
This commit is contained in:
Alex Brick
2019-01-24 15:58:41 +01:00
parent d5fe4dcadb
commit 867ce620d4
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
import btoa from 'btoa';
import btoa = require('btoa');
btoa('foo');
+4 -1
View File
@@ -1,7 +1,10 @@
// Type definitions for btoa 1.2
// Project: https://git.coolaj86.com/coolaj86/btoa.js
// Definitions by: John Wright <https://github.com/johngeorgewright>
// Alex Brick <https://github.com/bricka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export default function(str: string): string;
declare function btoa(str: string): string;
export = btoa;