@bothive/helpers
Version:
Collection of helper functions mainly used inside bothive-core project
21 lines (20 loc) • 489 B
TypeScript
export interface IMissingFields {
payload: unknown;
keys: string[];
message?: string;
meta?: Record<string, unknown>;
}
export interface IInvalid extends Error {
meta?: Record<string, unknown>;
}
export interface IInvalidObjectError extends Error {
name: string;
code?: string;
description?: string;
meta?: Record<string, unknown>;
}
export interface IErrorConstructor {
message?: string;
traceId?: string;
meta?: Record<string, unknown>;
}