mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
feat(settings page): add loading state (#1157)
* feat(settings page): add loading state * fix: type
This commit is contained in:
3
src/utils/is-async-function.ts
Normal file
3
src/utils/is-async-function.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function isAsyncFunction(fn: Function): boolean {
|
||||
return fn.constructor.name === "AsyncFunction";
|
||||
}
|
||||
Reference in New Issue
Block a user