Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tegg和官网使用ts是什么关系? #172

Open
bi-kai opened this issue Dec 10, 2023 · 7 comments
Open

tegg和官网使用ts是什么关系? #172

bi-kai opened this issue Dec 10, 2023 · 7 comments

Comments

@bi-kai
Copy link

bi-kai commented Dec 10, 2023

请详细告知你的新点子:

我希望给出使用simple创建js项目再切换ts,和使用tegg的相同点和不同点。

为什么官网没有给出相关的说明?只看readme没看出个所以然来,希望有个与官网文档类似的指导。

我的困惑是,现在推荐使用tegg还是这个方式?
https://www.eggjs.org/zh-CN/tutorials/typescript#%E6%8E%A7%E5%88%B6%E5%99%A8controller

@fengmk2
Copy link
Member

fengmk2 commented Dec 10, 2023

tegg 的文档在 https://github.com/eggjs/tegg/tree/master/plugin/controller ,可以先看看这个。
eggjs 官方文档还没更新。

@lusq010
Copy link

lusq010 commented Jan 12, 2024

tegg 的文档在 https://github.com/eggjs/tegg/tree/master/plugin/controller ,可以先看看这个。 eggjs 官方文档还没更新。

@fengmk2 文档滞后于版本,代码先行吗?现在通过脚手架生成的项目已经是基于tegg的egg3了呢,感觉没有文档很难开发

@killagu
Copy link
Contributor

killagu commented Jan 16, 2024

我抽空更新一下 egg 的文档。

@atom077
Copy link

atom077 commented May 6, 2024

我抽空更新一下 egg 的文档。

@killagu 请问现在 egg.js 的官方文档不继续更新了吗

@Xfront-end
Copy link

用官方脚手架选了typescript模板, 但是生成的结构和官网介绍的完全不一样,是我没看对文档吗???

@mqliutie
Copy link

mqliutie commented Jun 8, 2024

@killagu 在 tegg 中没有介绍 middleaware, 写法和老版本的一样吗

@fengmk2
Copy link
Member

fengmk2 commented Jun 8, 2024

eggjs/egg#3644 (comment) 可以看这里。
等 4.0 发布之后,文档会基于 tegg 更新一个版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants