github SBoudrias/Inquirer.js inquirer@11.1.0

7 hours ago
  • 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.

Don't miss a new Inquirer.js release

NewReleases is sending notifications on new releases.