-
-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types(compose): follow up #3932 #3934
base: main
Are you sure you want to change the base?
Conversation
Hi @yusukebe Type error occurred in Deno Job |
This seems to be a bug caused by a spec change in 2.2.0, as it works fine when Deno is reverted to 2.1.10 (one version earlier). https://github.com/denoland/deno/releases/tag/v2.2.0 |
Yes. Updating to TypeScript v5.7 caused this error. I'm investigating. |
just completed merging the fix for CI commit into this branch. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3934 +/- ##
==========================================
- Coverage 91.70% 91.32% -0.38%
==========================================
Files 159 168 +9
Lines 10145 10687 +542
Branches 2862 3022 +160
==========================================
+ Hits 9303 9760 +457
- Misses 840 926 +86
+ Partials 2 1 -1 ☔ View full report in Codecov by Sentry. |
Hi @EdamAme-x It's weird. The following command will fail on my machine.
Can you try it? |
okay |
It certainly fails. TS2345 [ERROR]: Argument of type 'string | ArrayBuffer | Uint8Array<ArrayBufferLike>' is not assignable to parameter of type 'string | ArrayBuffer'.
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type 'string | ArrayBuffer'.
Type 'Uint8Array<ArrayBufferLike>' is missing the following properties from type 'ArrayBuffer': maxByteLength, resizable, resize, detached, and 2 more.
this.#init.send(source, options ?? {})
~~~~~~
at file:///workspace/hono/src/helper/websocket/index.ts:71:21
TS2345 [ERROR]: Argument of type 'Uint8Array<ArrayBuffer>' is not assignable to parameter of type 'ArrayBufferLike'.
Type 'Uint8Array<ArrayBuffer>' is missing the following properties from type 'ArrayBuffer': maxByteLength, resizable, resize, detached, and 2 more.
return encodeBase64(buffer)
~~~~~~
at file:///workspace/hono/src/middleware/secure-headers/secure-headers.ts:131:23
TS2345 [ERROR]: Argument of type 'Uint8Array<ArrayBufferLike>' is not assignable to parameter of type 'ArrayBufferLike'.
Type 'Uint8Array<ArrayBufferLike>' is missing the following properties from type 'ArrayBuffer': maxByteLength, resizable, resize, detached, and 2 more.
encodeBase64Url(utf8Encoder.encode(JSON.stringify(part))).replace(/=/g, '')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///workspace/hono/src/utils/jwt/jwt.ts:25:19
Found 3 errors.
error: Type checking failed. |
@EdamAme-x Yes. Super weird. |
If it's main, it works. gitpod@honojs-hono-ze48ld05ll8:/workspace/hono$ deno publish --dry-run
Success Dry run complete
gitpod@honojs-hono-ze48ld05ll8:/workspace/hono$ git branch
* main |
This is a follow-up to PR #3922.
Fixed jsdoc and made minor type definition changes.
Marked as
choretypes since it does not constitute a change to the internal structure.The author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code