@nesvet/n
Version:
Various utilities
13 lines • 367 B
TypeScript
type MongoServerError = {
errorResponse: {
errmsg: string;
errInfo?: {
[key: string]: any;
};
};
[key: string]: any;
};
export declare function handleMongoError<E extends MongoServerError>(error: E): E;
export declare function handleMongoError(error: any): any;
export {};
//# sourceMappingURL=handleMongoError.d.ts.map