You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check file:///home/val/src/codeberg.org/valpackett/tiddlypwa/server/app.ts
error: TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'ArrayBufferView & string'.
Type 'string' is not assignable to type 'ArrayBufferView'.
ctrl.enqueue(`{"appEtag":${JSON.stringify(appEtag)},"serverChanges":[`);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///home/val/src/codeberg.org/valpackett/tiddlypwa/server/app.ts:122:17
TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'ArrayBufferView & string'.
(firstWritten ? '\n,' : '\n') + JSON.stringify({
^
at file:///home/val/src/codeberg.org/valpackett/tiddlypwa/server/app.ts:131:7
TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'ArrayBufferView & string'.
Type 'string' is not assignable to type 'ArrayBufferView'.
ctrl.enqueue('\n]}');
~~~~~~
at file:///home/val/src/codeberg.org/valpackett/tiddlypwa/server/app.ts:156:17
Found 3 errors.
Interestingly the LSP server reports it completely differently, in a way that makes more sense than just somehow deriving an intersection type:
This expression is not callable. Each member of the union type '{ (chunk: ArrayBufferView): void; (chunk: ArrayBufferView): void; } | { (chunk?: string | undefined): void; (chunk?: string | undefined): void; }' has signatures, but none of those signatures are compatible with each other.
soooo… that doesn't look good 🤔
The text was updated successfully, but these errors were encountered:
Version: Deno 1.45.3
#24599 has introduced a very strange typechecking error to my usage of the
ReadableStream
API:full code for reference
Interestingly the LSP server reports it completely differently, in a way that makes more sense than just somehow deriving an intersection type:
soooo… that doesn't look good 🤔
The text was updated successfully, but these errors were encountered: