Type Alias SafeFunction<Args, Return>

SafeFunction<Args, Return>: ((...args: Args) => Return | undefined)

A "safe function" is a wrapped function that would normally throw an UnresolvableError, but will instead return undefined. Other errors are still thrown.

Type Parameters

  • Args extends unknown[]
  • Return