Skip to content

Commit

Permalink
Add typecheck to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Aug 14, 2023
1 parent 68c849a commit c09d0b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deno-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
key: deno-https/v1-${{ github.sha }}
restore-keys: deno-https/v1-

# - name: Check mod.ts
# run: time deno check --unstable lib/spdy-transport.ts
- name: Check mod.ts
run: time deno check lib/mod.ts

- name: Run tests
run: time deno test test/spdy/v3-parser-test.ts
Expand Down
5 changes: 5 additions & 0 deletions lib/spdy-transport/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export class Stream extends EventEmitter {
isServer: this.connection.isServer(),
// state.debug = state.isServer ? debug.server : debug.client

//@ts-expect-error should be a common interface instead of a concrete union
framer: connectionState.framer,
//@ts-expect-error should be a common interface instead of a concrete union
parser: connectionState.parser,

request: options.request,
Expand Down Expand Up @@ -175,9 +177,11 @@ export class Stream extends EventEmitter {
}
break;
case 'HEADERS':
//@ts-expect-error optionalness mismatch
this._handleHeaders(frame);
break;
case 'RST':
//@ts-expect-error optionalness mismatch
this._handleRST(frame);
break;
case 'WINDOW_UPDATE':
Expand All @@ -187,6 +191,7 @@ export class Stream extends EventEmitter {
this._handlePriority(frame);
break;
case 'PUSH_PROMISE':
//@ts-expect-error optionalness mismatch
this._handlePushPromise(frame);
break;
}
Expand Down

0 comments on commit c09d0b5

Please sign in to comment.