eggjs / eggjs/egg

JSDoc code completion

Open
#3,198 16 comments 0 reactions 1 assignee Claimed by @whxaxes View on GitHub
Inactive type: bug typescript
Dominant language
TypeScript
Stars
19k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

I have a service like

```js
// app/service/user.js
const Service = require('egg').Service;

class UserService extends Service {
async find(uid) {
const user = await this.ctx.db.query('select * from user where uid = ?', uid);
return user;
}
}

module.exports = UserService;
```

How can I doc it using jsdoc , I want code completion in webstorm

```js
ctx.service.{code complete}
ctx.service.user.{code complete}
```

Second question , is there any eggjs stubs

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.