File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
import { join } from 'path'
11
- import snakeCase from 'snake-case'
12
11
import { args } from '@adonisjs/ace'
12
+ import { snakeCase } from 'snake-case'
13
13
import { RcFile } from '@ioc:Adonis/Core/Application'
14
+
14
15
import { BaseGenerator } from './Base'
15
16
16
17
/**
@@ -56,15 +57,15 @@ export default class MakeCommand extends BaseGenerator {
56
57
/**
57
58
* Passed down to the template.
58
59
*/
59
- protected $templateData ( ) {
60
+ protected $templateData ( ) : { toCommandName : ( filename : string ) => string } {
60
61
return {
61
- toCommandName : ( filename : string ) => {
62
+ toCommandName : ( filename : string ) : string => {
62
63
return snakeCase ( filename ) . replace ( / _ / , ':' )
63
64
} ,
64
65
}
65
66
}
66
67
67
- public async handle ( ) {
68
+ public async handle ( ) : Promise < void > {
68
69
this . $resourceName = this . name
69
70
await super . handle ( )
70
71
}
You can’t perform that action at this time.
0 commit comments