Skip to content

typing error on method concat with TS 5.3 #338

@Apollon77

Description

@Apollon77
../../node_modules/buffer/index.d.ts:1:14 - error TS2417: Class static side 'typeof Buffer' incorrectly extends base class static side '{ readonly prototype: Uint8Array; readonly BYTES_PER_ELEMENT: number; of(...items: number[]): Uint8Array; from(arrayLike: ArrayLike<number>): Uint8Array; from<T>(arrayLike: ArrayLike<...>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; from(arrayLike: Iterable<...>, mapfn?: ((v: number, k: number) =...'.
  Types of property 'concat' are incompatible.
    Type '(list: Buffer[], totalLength?: number | undefined) => Buffer' is not assignable to type '(...arrays: Uint8Array[]) => Uint8Array'.
      Types of parameters 'list' and 'arrays' are incompatible.
        Type 'Uint8Array' is missing the following properties from type 'Buffer[]': pop, push, concat, shift, and 5 more.

1 export class Buffer extends Uint8Array {
               ~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions