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 88*/
99
1010import { join } from 'path'
11- import snakeCase from 'snake-case'
1211import { args } from '@adonisjs/ace'
12+ import { snakeCase } from 'snake-case'
1313import { RcFile } from '@ioc:Adonis/Core/Application'
14+
1415import { BaseGenerator } from './Base'
1516
1617/**
@@ -56,15 +57,15 @@ export default class MakeCommand extends BaseGenerator {
5657 /**
5758 * Passed down to the template.
5859 */
59- protected $templateData ( ) {
60+ protected $templateData ( ) : { toCommandName : ( filename : string ) => string } {
6061 return {
61- toCommandName : ( filename : string ) => {
62+ toCommandName : ( filename : string ) : string => {
6263 return snakeCase ( filename ) . replace ( / _ / , ':' )
6364 } ,
6465 }
6566 }
6667
67- public async handle ( ) {
68+ public async handle ( ) : Promise < void > {
6869 this . $resourceName = this . name
6970 await super . handle ( )
7071 }
You can’t perform that action at this time.
0 commit comments