mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: mark model as plugin
This commit is contained in:
1 parent
7f96f602ce
commit
90a9fa95f4
21 files changed
+117
-89
No files matched your search
@@ -17,7 +17,9 @@ export function ArgMethod(target: any, funcName: string, obj: any) {
|
||||
}
|
||||
|
||||
export function unwrapExports(module: any) {
|
||||
return module?.default || module;
|
||||
return (!module || typeof module !== 'object') ? module
|
||||
: 'apply' in module && typeof module.apply === 'function' ? module
|
||||
: 'default' in module ? module.default : module;
|
||||
}
|
||||
|
||||
export * from '@hydrooj/utils/lib/utils';
|
||||
Reference in new issue
Block a user