Skip to content

Commit

Permalink
fix: no any as type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
msanguineti committed Jul 15, 2019
1 parent cd9fbca commit 94357f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmds/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { success, error } from '../utils/text'
/* eslint-disable no-unused-vars */
/* eslint-enable @typescript-eslint/no-unused-vars */
import { prompt, Question } from 'inquirer'
import { prompt, Question, Answers } from 'inquirer'
import { CommandModule, Arguments } from 'yargs'
import { isValidBranchName, writeConfigFile, ConfigValues } from '../core'

Expand Down Expand Up @@ -61,7 +61,7 @@ const generateQuestions = (argv: Arguments): Question[] => {
type: 'input',
message: 'Development branch:',
default: (argv.development as string) || 'develop',
when: function (answers: { [key: string]: any }) {
when: (answers: Answers) => {
return answers.usedev
},
validate: (value: string) => {
Expand Down Expand Up @@ -155,7 +155,7 @@ const generateQuestions = (argv: Arguments): Question[] => {
value: 'ask'
}
],
when: function (answers: { [key: string]: any }) {
when: (answers: Answers) => {
return answers.integration !== 2
}
},
Expand Down

0 comments on commit 94357f9

Please sign in to comment.