Skip to content

Commit

Permalink
fix: array supporting for config.static.dir (#3421)
Browse files Browse the repository at this point in the history
  • Loading branch information
njugray authored and whxaxes committed Jan 24, 2019
1 parent 43f2e3c commit e899630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ declare module 'egg' {

static: {
prefix: string;
dir: string;
dir: string | string[];
// support lazy load
dynamic: boolean;
preload: boolean;
Expand Down

2 comments on commit e899630

@DarrenHou1993
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该是 dir: string | any[] 吧。

@whxaxes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DarrenHou1993 这个声明是有点问题,晚点我把这个声明迁移到 egg-static 上维护,到时候再更正一下

Please sign in to comment.