mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
feat: zod config no longer any
This commit is contained in:
@@ -40,5 +40,5 @@ export const getWriteableConfig = <T extends ConfigType>(
|
||||
};
|
||||
}
|
||||
|
||||
return schema.parse(mergedConfig) as any; // Narrowing ensures correct typing
|
||||
return schema.parse(mergedConfig) as T extends 'memory' ? MyServersConfigMemory : MyServersConfig; // Narrowing ensures correct typing
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user