mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
6 lines
173 B
TypeScript
6 lines
173 B
TypeScript
import { isObject } from '@nestjs/common/utils/shared.utils';
|
|
|
|
export function isErrorObject(err: any): err is Error {
|
|
return isObject(err) && !!(err as Error).message;
|
|
}
|