Skip to content

Commit 7295d0f

Browse files
committed
chore(typings): change elements of EggAppConfig['view'] optional
root, cache, defaultExtension
1 parent cdd245c commit 7295d0f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ declare module 'egg' {
420420
} & PlainObject;
421421

422422
view: {
423-
root: string;
424-
cache: boolean;
425-
defaultExtension: string;
423+
root?: string;
424+
cache?: boolean; // default true
425+
defaultExtension?: string;
426426
defaultViewEngine: string;
427427
mapping: PlainObject<string>;
428428
};

0 commit comments

Comments
 (0)