Skip to content
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

typing error on method concat with TS 5.3 #338

Open
Apollon77 opened this issue Dec 17, 2023 · 0 comments
Open

typing error on method concat with TS 5.3 #338

Apollon77 opened this issue Dec 17, 2023 · 0 comments

Comments

@Apollon77
Copy link

../../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 {
               ~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant