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
$ uname -a
Linux schnippi 5.15.0-92-generic #102~20.04.1-Ubuntu SMP Mon Jan 15 13:09:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Subsystem:
event-target.ts
Severity:
Low
Description / Steps to reproduce the error:
$ tsc
node_modules/@libp2p/interface/src/event-target.ts:94:71 - error TS2345: Argument of type 'CustomEventInit<Detail>' is not assignable to parameter of type 'CustomEventInit<Detail> & EventInit & { detail: Detail; }'.
Type 'CustomEventInit<Detail>' is not assignable to type '{ detail: Detail; }'.
Property 'detail' is optional in type 'CustomEventInit<Detail>' but required in type '{ detail: Detail; }'.
94 return this.dispatchEvent(new CustomEvent<Detail>(type as string, detail))
~~~~~~
node_modules/@libp2p/interface/src/event-target.ts:111:5 - error TS2578: Unused '@ts-expect-error' directive.
111 // @ts-expect-error could be undefined
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
event-target.ts
Severity:
Low
Description / Steps to reproduce the error:
The text was updated successfully, but these errors were encountered: