Skip to content

Commit

Permalink
docs: fix generation
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <[email protected]>
  • Loading branch information
hacdias committed Dec 11, 2020
1 parent 06711cb commit 11cf881
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ exports = module.exports
exports.addPrefix = (multicodecStrOrCode, data) => {
let prefix

// @ts-ignore: TS2358
if (multicodecStrOrCode instanceof Uint8Array) {
prefix = util.varintUint8ArrayEncode(multicodecStrOrCode)
} else {
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./node_modules/aegir/src/config/tsconfig.aegir.json",
"compilerOptions": {
"outDir": "dist"
},
"files": [
"src/base-table.json"
],
"include": [
"test", // remove this line if you don't want to type-check tests
"src"
]
}

0 comments on commit 11cf881

Please sign in to comment.