UNPKG

cbor-edn

Version:

Parse CBOR Extended Diagnostic Notation as defined by [draft-ietf-cbor-edn-literals-16](https://www.ietf.org/archive/id/draft-ietf-cbor-edn-literals-16.html) and some CBOR working group discussions.

9 lines (8 loc) 250 B
/** * Pulled in here to keep this project web-safe. * * @param value Value to check. * @param message Message to throw if invalid. * @throws If !value. */ export declare function assert(value: unknown, message?: string | Error): asserts value;