Skip to content

Type Alias: CreatedException<T>

ts
type CreatedException<T> = typeof BaseException & T extends never
  ? (message?: string, options?: ErrorOptions) => BaseException
  : (args: T, options?: ErrorOptions) => BaseException;

Type Parameters

Type ParameterDefault type
T extends any[]never