Skip to content

Commit

Permalink
Merge PR #19 from 'nodech/ts-lint'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Sep 1, 2023
2 parents c4d4fad + dde3eb6 commit cbb624b
Show file tree
Hide file tree
Showing 10 changed files with 426 additions and 207 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ jobs:
node-version: 18.x

- name: Install bslint
run: npm i -g bslint
run: npm i -g bslint typescript

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Lint types
run: npm run lint-types

build:
name: Build & Test
runs-on: ${{matrix.os}}
Expand Down
5 changes: 4 additions & 1 deletion lib/bdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ exports.create = (options) => {

const {memory, location} = options;

if (memory)
if (memory) {
// @ts-ignore
return new DB(MemDB, 'memory', options);
}

// @ts-ignore
return new DB(Level, location, options);
};

Expand Down
Loading

0 comments on commit cbb624b

Please sign in to comment.