Skip to content

Commit

Permalink
declare types in index.d.ts; add typing in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryNative committed May 4, 2020
1 parent b40564b commit e9f00fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function byteLength(b64: string): number;
export function toByteArray(b64: string): Uint8Array;
export function fromByteArray(uint8: Uint8Array): string;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Base64 encoding/decoding in pure JS",
"version": "1.3.1",
"author": "T. Jameson Little <t.jameson.little@gmail.com>",
"typings": "index.d.ts",
"bugs": {
"url": "https://github.com/beatgammit/base64-js/issues"
},
Expand Down

0 comments on commit e9f00fa

Please sign in to comment.