Skip to content

TS2554: Expected 2 arguments, but got 1 at jsondiffpatch.formatters.console.format #293

@muescha

Description

@muescha

docs

docs wrong for TypeScript at:

https://github.com/benjamine/jsondiffpatch/blob/master/docs/formatters.md#console

where:

jsondiffpatch.formatters.console.format(result)

error

TS2554: Expected 2 arguments, but got 1

workaround

jsondiffpatch.formatters.console.format(result, null)

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