This package has limited bug data (1 entry). Check back later or see the package health page for the full signal.

minipass known bugs

npm

1 known bug in minipass, with affected versions, fixes and workarounds. Sourced from upstream issue trackers.

1
bugs
Known bugs
SeverityAffectedFixed inTitleStatusSource
mediumany\u2014
TypeScript errors in index.d.ts
Running `tsc index.d.ts` in version 6 of this package throws the following errors: ``` index.d.ts:140:3 - error TS2416: Property 'on' in type 'Minipass<RType, WType, Events>' is not assignable to the same property in base type 'Stream'. Type '<Event extends keyof Events>(ev: Event, handler: (...args: Events[Event]) => any) => this' is not assignable to type '(eventName: string | symbol, listener: (...args: any[]) => void) => this'. Types of parameters 'ev' and 'eventName' are incompatible. Type 'string | symbol' is not assignable to type 'keyof Events'. Type 'symbol' is not assignable to type 'keyof Events'. Type 'symbol' is not assignable to type 'keyof Events<RType>'. 140 on<Event extends keyof Events>( ~~ index.d.ts:145:3 - error TS2416: Property 'once' in type 'Minipass<RType, WType, Events>' is not assignable to the same property in base type 'Stream'. Type '<Event extends keyof Events>(ev: Event, handler: (...args: Events[Event]) => any) => this' is not assignable to type '(eventName: string | symbol, listener: (...args: any[]) => void) => this'. Types of parameters 'ev' and 'eventName' are incompatible. Type 'string | symbol' is not assignable to type 'keyof Events'. Type 'symbol' is not assignable to type 'keyof Events'. 145 once<Event extends keyof Events>( ~~~~ index.d.ts:150:3 - error TS2416: Property 'addListener' in type 'Minipass<RType, WType, Events>' is not assignable to the same property in base type 'Stream'. Type '<Event extends keyof Events>(ev: Event, handler: (...args: Events[Event]) => any) => this' is not assignable to type '(eventName: string | symbol, listener: (...args: any[]) => void) => this'. Types of parameters 'ev' and 'eventName' are incompatible. Type 'string | symbol' is not assignable to type 'keyof Events'. Type 'symbol' is not assignable to type 'keyof Events'. 150 addListener<Event extends keyof Events>( ~~~~~~~~~~~ index.d.ts:155:3 - error TS2416: Property 'emit' in type 'Minipass<RType, WType, Events>' is not assignable to the same property in base type 'Stream'. Type '<Event extends keyof Events>(ev: Event, ...data: Events[Event]) => boolean' is not assignable to type '(eventName: string | symbol, ...args: any[]) => boolean'. Types of parameters 'ev' and 'eventName' are incompatible. Type 'string | symbol' is not assignable to type 'keyof Events'. Type 'symbol' is not assignable to type 'keyof Events'. 155 emit<Event extends keyof Events>(ev: Event, ...data: Events[Event]): boolean ~~~~ node_modules/@types/node/globals.d.ts:72:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'. 72 declare var AbortSignal: { ~~~~~~~~~~~ ../../../../usr/lib/node_modules/typescript/lib/lib.dom.d.ts:2090:13 2090 declare var AbortSignal: { ~~~~~~~~~~~ 'AbortSignal' was also declared here. Found 5 errors in 2 files. Errors Files 4 index.d.ts:140 1 node_modules/@types/node/globals.d.ts:72 ```
fixedgithub:49
API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/bugs/npm/minipass