-
Notifications
You must be signed in to change notification settings - Fork 31
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
添加 egg-socket.io 和 egg-graphql 支持 #60
Comments
https://github.com/whxaxes/egg-ts-helper/blob/master/README.zh-CN.md#generator 可以尝试用 generator 配置自动生成 d.ts |
egg-socket.io 比较简单,解决了
请帮忙校正错误,谢谢 ... module.exports = {
watchDirs: {
graphql_connector: {
directory: 'app/graphql',
// pattern: '**/*.(ts|js)',
generator: 'auto',
interface: 'IConnector',
declareTo: 'Context.connector',
},
socket_io_controller: {
directory: 'app/io/controller',
generator: 'class',
interface: 'CustomController',
},
},
}; |
@v7lin 你可以试一下。。。。我这边没有用过 graphql 。。。不太好验证 |
socket.io有效,另一个也没用过。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
添加 egg-socket.io 和 egg-graphql 支持,不然手写太蛋疼了
The text was updated successfully, but these errors were encountered: