Skip to content

inquirer@11.1.0

Compare
Choose a tag to compare
@SBoudrias SBoudrias released this 27 Sep 19:59
· 58 commits to main since this release
  • Now exports base utility Typescript types: import type { Question, DistinctQuestion, Answers } from 'inquirer';

You should use as follow to keep the inference working properly:

const questions = [
    { ... }
] as const satisfies Question[];
// If you're not using inquirer plugins, `Question` could alternatively be replaced by `DistinctQuestion` for stricter checks.