Returns a function that throws when called. Use to give more helpful errors when an expected value is missing. use as: const foo = context.foo || required('value of foo') or: const foo = context.foo ?? required('value of foo')
const foo = context.foo || required('value of foo')
const foo = context.foo ?? required('value of foo')
Generated using TypeDoc
Returns a function that throws when called. Use to give more helpful errors when an expected value is missing. use as:
const foo = context.foo || required('value of foo')
or:const foo = context.foo ?? required('value of foo')