mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 15:34:38 +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;
|
||
|
}
|