DefaultError: Register extends {
        defaultError: infer TError;
    }
    ? TError
    : Error