mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Patch Tuesday 🐸 (#16475)
* 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>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export default function getModuleDefault<T>(mod: T | { default: T }): T {
|
||||
export default function getModuleDefault<T extends object>(mod: T | { default: T }): T {
|
||||
if ('default' in mod) {
|
||||
return mod.default;
|
||||
}
|
||||
|
||||
return mod;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user