Skip to content

Commit

Permalink
Types! (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
qntm committed May 3, 2021
1 parent 178c335 commit 327136d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,9 @@
# CHANGELOG

## 1.x.x

`base2048` now operates on `Uint8Array`s, not `ArrayBuffer`s.

## 0.0.x

Prototype release.
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -9,8 +9,10 @@
},
"module": "dist/es6/base2048.js",
"main": "dist/cjs/base2048.js",
"types": "typings/index.d.ts",
"scripts": {
"build": "rollup -c rollup.config.js",
"postpublish": "npm version patch && git push",
"test": "npx standard && npx jest --coverage",
"test-built": "npm run test-built-cjs && npm run test-built-es6 && npm run test-built-iife",
"test-built-cjs": "node test-built/cjs.js",
Expand Down Expand Up @@ -46,6 +48,7 @@
"ignore": "dist"
},
"files": [
"dist/**/*"
"dist",
"typings"
]
}
2 changes: 2 additions & 0 deletions typings/index.d.ts
@@ -0,0 +1,2 @@
export declare const encode: (uint8Array: Uint8Array) => string;
export declare const decode: (str: string) => Uint8Array;

0 comments on commit 327136d

Please sign in to comment.