mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 22:02:23 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
6 lines
171 B
TypeScript
6 lines
171 B
TypeScript
export function isAbortError(error: unknown): boolean {
|
|
return (
|
|
typeof error === 'object' && error !== null && 'name' in error && error.name === 'AbortError'
|
|
)
|
|
}
|