Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
muescha opened this issue Jun 24, 2020 · 0 comments · Fixed by #346
Closed

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

muescha opened this issue Jun 24, 2020 · 0 comments · Fixed by #346

Comments

@muescha
Copy link

muescha commented Jun 24, 2020

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)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant