@onflow/util-invariant
v1.2.2-event-streaming.0import {invariant} from "@onflow/util-invariant"
function add(a, b) {
invariant(typeof a === "number", "add(a, b) -- `a` needs to be a number", { a, b })
invariant(typeof b === "number", "add(a, b) -- `b` needs to be a number", { a, b })
return a + b
}
npm i @onflow/[email protected]
Metadata
- Apache-2.0
- Whatever
- Dapper Labs
- released 11/29/2023