feat(intellisense): add type comments

This commit is contained in:
Romain Lanz 2018-09-15 09:37:07 +02:00
parent 489897c488
commit b38ea8d773
No known key found for this signature in database
GPG Key ID: 6C8EB7B74301AB6B
7 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,6 @@
'use strict'
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
const Model = use('Model')
class Token extends Model {

View File

@ -1,6 +1,9 @@
'use strict'
/** @type {import('@adonisjs/framework/src/Hash')} */
const Hash = use('Hash')
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
const Model = use('Model')
class User extends Model {

View File

@ -11,12 +11,11 @@
|
*/
/** @type {import('@adonisjs/lucid/src/Factory')} */
// const Factory = use('Factory')
/**
Factory.blueprint('App/Models/User', (faker) => {
return {
username: faker.username()
}
})
*/
// Factory.blueprint('App/Models/User', (faker) => {
// return {
// username: faker.username()
// }
// })

View File

@ -1,5 +1,6 @@
'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')
class UserSchema extends Schema {

View File

@ -1,5 +1,6 @@
'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use('Schema')
class TokensSchema extends Schema {

View File

@ -1,5 +1,6 @@
'use strict'
/** @type {import('@adonisjs/framework/src/Server')} */
const Server = use('Server')
/*

View File

@ -13,6 +13,7 @@
|
*/
/** @type {import('@adonisjs/framework/src/Route/Manager'} */
const Route = use('Route')
Route.on('/').render('welcome')