Files
dify/web/utils/is-abort-error.ts
T
2a6764edc5 feat: add reusable network access group APIs (#41025)
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>
2026-10-20 05:52:18 +00:00

6 lines
171 B
TypeScript

export function isAbortError(error: unknown): boolean {
return (
typeof error === 'object' && error !== null && 'name' in error && error.name === 'AbortError'
)
}