Add type in GeneratorCommand
Merge pull request #5739 from lucasmichot/5.0-generatorcommand-type

[5.0] GeneratorCommand : Missing type declaration