• 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')

    Parameters

    • label: string

    Returns (() => never)

      • (): never
      • Returns never

Generated using TypeDoc