Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export function encode(uint8array: Uint8Array): string;

export function decode(base64: string): Uint8Array;

declare const uint8ToBase64: {
encode: typeof encode;
decode: typeof decode;
};

export default uint8ToBase64;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uint8-to-base64",
"version": "0.2.0",
"version": "0.2.1",
"description": "A safe Uint8Array to base64 string converter",
"main": "cjs/index.js",
"scripts": {
Expand Down Expand Up @@ -43,5 +43,6 @@
"bugs": {
"url": "https://github.com/WebReflection/uint8-to-base64/issues"
},
"homepage": "https://github.com/WebReflection/uint8-to-base64#readme"
"homepage": "https://github.com/WebReflection/uint8-to-base64#readme",
"types": "index.d.ts"
}