UNPKG

option-t

Version:

A toolkit of Nullable/Option/Result type implementation in ECMAScript. Their APIs are inspired by Rust's `Option<T>` and `Result<T, E>`.

4 lines (3 loc) 196 B
import { ERR_MSG_CALLED_WITH } from '../../../internal/error_message.js'; const NONE_TYPE_STR = '`None`'; export const ERR_MSG_UNWRAP_SOME_BUT_INPUT_IS_NONE = ERR_MSG_CALLED_WITH + NONE_TYPE_STR;