fix: custom override method removes support for asynchronous #672

This commit is contained in:
Hufe921
2024-07-03 20:17:32 +08:00
parent 3a6878e34f
commit 0e705d6a0b
7 changed files with 18 additions and 35 deletions
-4
View File
@@ -326,7 +326,3 @@ export function isObjectEqual(obj1: unknown, obj2: unknown): boolean {
}
return !obj1Keys.some(key => obj2[key] !== obj1[key])
}
export function isPromiseFunction(fn: Function): boolean {
return fn?.constructor?.name === 'AsyncFunction'
}