Socket
Book a DemoInstallSign in
Socket

@ephox/dispute

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ephox/dispute

Basic typeclasses useful for comparison and testing: Eq, Show, Pprint

latest
release-1.0
npmnpm
Version
1.0.16
Version published
Maintainers
2
Created
Source

Dispute

This library contains the following basic type classes:

  • Eq - equality
  • Show - printing values as literals for debugging
  • Pprint - pretty-printing values
  • Testable - Eq and Pprint

Testable is useful for test assertion libraries. You can use Dispute functionality test that two values are equal, and if they're not, pretty-print the expected and actual.

Dispute provides instances for common TypeScript types, as well as for any types, using type inspection. It is also extendable to types which can't be compared correctly with type inspection - e.g. church-encoded types.

Dispute is used in the Bedrock test runner.

FAQs

Package last updated on 15 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts