feat(intellisense): add type comments
This commit is contained in:
parent
489897c488
commit
b38ea8d773
|
@ -1,5 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
|
||||||
const Model = use('Model')
|
const Model = use('Model')
|
||||||
|
|
||||||
class Token extends Model {
|
class Token extends Model {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
/** @type {import('@adonisjs/framework/src/Hash')} */
|
||||||
const Hash = use('Hash')
|
const Hash = use('Hash')
|
||||||
|
|
||||||
|
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
|
||||||
const Model = use('Model')
|
const Model = use('Model')
|
||||||
|
|
||||||
class User extends Model {
|
class User extends Model {
|
||||||
|
|
|
@ -11,12 +11,11 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @type {import('@adonisjs/lucid/src/Factory')} */
|
||||||
// const Factory = use('Factory')
|
// const Factory = use('Factory')
|
||||||
|
|
||||||
/**
|
// Factory.blueprint('App/Models/User', (faker) => {
|
||||||
Factory.blueprint('App/Models/User', (faker) => {
|
// return {
|
||||||
return {
|
// username: faker.username()
|
||||||
username: faker.username()
|
// }
|
||||||
}
|
// })
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
/** @type {import('@adonisjs/lucid/src/Schema')} */
|
||||||
const Schema = use('Schema')
|
const Schema = use('Schema')
|
||||||
|
|
||||||
class UserSchema extends Schema {
|
class UserSchema extends Schema {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
/** @type {import('@adonisjs/lucid/src/Schema')} */
|
||||||
const Schema = use('Schema')
|
const Schema = use('Schema')
|
||||||
|
|
||||||
class TokensSchema extends Schema {
|
class TokensSchema extends Schema {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
/** @type {import('@adonisjs/framework/src/Server')} */
|
||||||
const Server = use('Server')
|
const Server = use('Server')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @type {import('@adonisjs/framework/src/Route/Manager'} */
|
||||||
const Route = use('Route')
|
const Route = use('Route')
|
||||||
|
|
||||||
Route.on('/').render('welcome')
|
Route.on('/').render('welcome')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user