Skip to content

Commit

Permalink
fix: relax BitArray#intersectValues types (#339)
Browse files Browse the repository at this point in the history
* fix: relax BitArray#intersectValues types

* chore: update ci

* chore: update ci
  • Loading branch information
wemeetagain authored Feb 10, 2024
1 parent 93ab30e commit 9ba2456
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 18
- run: corepack enable
- run: yarn --immutable && yarn build

- name: Run benchmarks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
node: [16, 18]
steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: ${{matrix.node}}
cache: yarn
- run: corepack enable
- name: Bootstrap
run: yarn --immutable
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/src/value/bitArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class BitArray {
/**
* Returns an array with the indexes which have a bit set to true
*/
intersectValues<T>(values: T[]): T[] {
intersectValues<T>(values: ArrayLike<T>): T[] {
const yes: T[] = [];

if (values.length !== this.bitLen) {
Expand Down

0 comments on commit 9ba2456

Please sign in to comment.