Skip to content

buffer builder error #16

@shaniqwa

Description

@shaniqwa

getting these errors:

ERROR in node_modules/escpos-xml/lib/buffer-builder.ts(9,19): error TS2554: Expected 2 arguments, but got 0.
node_modules/escpos-xml/lib/buffer-builder.ts(150,5): error TS2322: Type 'Buffer' is not assignable to type 'number[]'.
  Property 'push' is missing in type 'Buffer'.

I have fixed it by changing the return to return Array.prototype.slice.call(this.buffer.flush(), 0); in buffer-builder.ts line 150

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