mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[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:
@@ -1,3 +1,3 @@
|
||||
import btoa from 'btoa';
|
||||
import btoa = require('btoa');
|
||||
|
||||
btoa('foo');
|
||||
|
||||
Vendored
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user