Skip to content

TS2339: Property 'log' does not exist on type 'Formatter'. #292

@muescha

Description

@muescha

docs

docs wrong for TypeScript at:

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

where:

jsondiffpatch.console.log(result)

error:

TS2339: Property 'log' does not exist on type 'Formatter'.

workaround

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

see also:

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