We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b30a59 commit 5561087Copy full SHA for 5561087
src/define_config.ts
@@ -12,11 +12,9 @@ import string from '@poppinss/utils/string'
12
import type { ServerConfig } from './types/server.js'
13
import lodash from '@poppinss/utils/lodash'
14
15
-type DeepPartial<T> = T extends object
16
- ? {
17
- [P in keyof T]?: DeepPartial<T[P]>
18
- }
19
- : T
+type DeepPartial<T> = {
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]
+}
20
21
type UserDefinedServerConfig = DeepPartial<
22
Omit<ServerConfig, 'trustProxy'> & {
0 commit comments