TypeError
make
RESCRIPT
let make: string => tCreates a new TypeError with the provided message.
See TypeError on MDN.
throwWithMessage
RESCRIPT
let throwWithMessage: string => 'aCreates a new TypeError with the provided message and throws it.
JsError.TypeError.throwWithMessage("message") is equivalent to JsError.TypeError.make("message")->JsError.throw.
See TypeError on MDN.