diff --git a/index.d.ts b/index.d.ts index 5c31d20b0e..70d84f62a6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -965,7 +965,7 @@ declare module 'egg' { * // { view: { defaultEngines: string } } => { view?: { defaultEngines?: string } } * type EggConfig = PowerPartial */ - type PowerPartial = { + export type PowerPartial = { [U in keyof T]?: T[U] extends object ? PowerPartial : T[U]