Skip to content

Commit

Permalink
docs: chore for router and typescript (#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored and popomore committed Apr 13, 2018
1 parent ee2d2b3 commit a5b6731
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/source/en/basics/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,5 @@ module.exports = app => {
app.router.get('/admin/log', app.controller.admin.log);
};
```

or using [egg-router-plus](https://github.com/eggjs/egg-router-plus).
2 changes: 2 additions & 0 deletions docs/source/zh-cn/basics/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,5 @@ module.exports = app => {
app.router.get('/admin/log', app.controller.admin.log);
};
```

也可直接使用 [egg-router-plus](https://github.com/eggjs/egg-router-plus)
4 changes: 2 additions & 2 deletions docs/source/zh-cn/tutorials/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ export default plugin;

### Typings

该目录为 TS 的规范,在里面的 `\*\*/\*.d.ts` 文件将被自动识别。
该目录为 TS 的规范,在里面的 `**/*.d.ts` 文件将被自动识别。

* 开发者需要手写的建议放在 `typings/index.d.ts` 中。
* 工具会自动生成 `typings/{app,config}/\*\*.d.ts` ,请勿自行修改,避免被覆盖。(见下文)
* 工具会自动生成 `typings/{app,config}/**.d.ts` ,请勿自行修改,避免被覆盖。(见下文)

---

Expand Down

0 comments on commit a5b6731

Please sign in to comment.