Skip to content
1 min read · 72 words

Type Alias: CreatedException<T>

ts
type CreatedException<T> = typeof BaseException & T extends []
  ? (options?: ExceptionOptions) => BaseException
  : (args: T, options?: ExceptionOptions) => BaseException;

Constructor signature of an exception class produced by createException.

Type Parameters

Type ParameterDefault typeDescription
T extends any[][]Tuple of printf-style format argument types. When T is an empty tuple the constructor takes no positional message arguments; when non-empty the first argument must be an array of values matching T.