Skip to content

Commit 9943734

Browse files
committed
feat(intellisense): add type comments
1 parent 614d3d6 commit 9943734

File tree

11 files changed

+20
-7
lines changed

11 files changed

+20
-7
lines changed

app/Models/Token.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
34
const Model = use('Model')
45

56
class Token extends Model {

app/Models/User.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict'
22

3+
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
34
const Model = use('Model')
5+
6+
/** @type {import('@adonisjs/framework/src/Hash')} */
47
const Hash = use('Hash')
58

69
class User extends Model {

config/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/framework/src/Env')} */
34
const Env = use('Env')
45

56
module.exports = {

config/auth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/framework/src/Env')} */
34
const Env = use('Env')
45

56
module.exports = {

config/database.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/framework/src/Env')} */
34
const Env = use('Env')
5+
6+
/** @type {import('@adonisjs/ignitor/src/Helpers')} */
47
const Helpers = use('Helpers')
58

69
module.exports = {

config/hash.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/framework/src/Env')} */
34
const Env = use('Env')
45

56
module.exports = {

database/factory.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
|
1212
*/
1313

14+
/** @type {import('@adonisjs/lucid/src/Factory')} */
1415
// const Factory = use('Factory')
1516

16-
/**
17-
Factory.blueprint('App/Models/User', (faker) => {
18-
return {
19-
username: faker.username()
20-
}
21-
})
22-
*/
17+
// Factory.blueprint('App/Models/User', (faker) => {
18+
// return {
19+
// username: faker.username()
20+
// }
21+
// })

database/migrations/1503250034279_user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/lucid/src/Schema')} */
34
const Schema = use('Schema')
45

56
class UserSchema extends Schema {

database/migrations/1503250034280_token.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/lucid/src/Schema')} */
34
const Schema = use('Schema')
45

56
class TokensSchema extends Schema {

start/kernel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
/** @type {import('@adonisjs/framework/src/Server')} */
34
const Server = use('Server')
45

56
/*

start/routes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
|
1414
*/
1515

16+
/** @type {import('@adonisjs/framework/src/Route/Manager'} */
1617
const Route = use('Route')
1718

1819
Route.get('/', () => {

0 commit comments

Comments
 (0)