Skip to content

Buffer index signature missing #1141

Closed

Description

@jtenner
ERROR TS2329: Index signature is missing in type 'main/Buffer'.

 a[0] = 1;
 ~

Minimal reproduce:

class Buffer extends Uint8Array {}
let a = new Buffer(10);
a[0] = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions