Skip to content

Commit

Permalink
pkg: add minimal type lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Sep 24, 2023
1 parent 15eef32 commit d9dd082
Show file tree
Hide file tree
Showing 38 changed files with 550 additions and 154 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
node-version: 20.x

- name: Install tools
run: npm install --location=global bslint
run: npm install --location=global bslint typescript

- name: Lint
run: npm run lint

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

general:
name: Javascript & Bigint
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions lib/aes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

'use strict';

let AES;

if (process.env.NODE_BACKEND === 'js')

Check failure on line 11 in lib/aes.js

View workflow job for this annotation

GitHub Actions / Lint

Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
module.exports = require('./js/aes');
AES = require('./js/aes');
else
module.exports = require('./native/aes');
AES = require('./native/aes');

module.exports = AES;
Loading

0 comments on commit d9dd082

Please sign in to comment.