@onflow/util-invariant
v1.1.0-alpha.2import {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 6/2/2023