mirror of
https://github.com/directus/directus.git
synced 2026-01-28 15:28:24 -05:00
* Update monorepo root * Update API dependencies * Use unranged version * Update app deps * Upgrade packages dependencies * Fix shared build * Fix type warning in api * Fix test runner * Get rekt by ya boy comma-, * Fix missing unit deprecation for sass color.mix() Co-authored-by: ian <licitdev@gmail.com>
8 lines
155 B
TypeScript
8 lines
155 B
TypeScript
export default function getModuleDefault<T extends object>(mod: T | { default: T }): T {
|
|
if ('default' in mod) {
|
|
return mod.default;
|
|
}
|
|
|
|
return mod;
|
|
}
|