diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..3fab6f7 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,2 @@ +export declare function atob(val: string): string; +export declare function btoa(val: string): string; \ No newline at end of file diff --git a/package.json b/package.json index 96fa3db..6560a04 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.2", "description": "atob and btoa for browsers or node", "main": "index.js", + "types": "index.d.ts", "browser": "browser.js", "devDependencies": { "chai": "^2.3.0", @@ -39,4 +40,4 @@ "url": "https://github.com/ksheedlo/isomorphic-base64/issues" }, "homepage": "https://github.com/ksheedlo/isomorphic-base64" -} +} \ No newline at end of file