inquirer
14.2.5 · 27 Oct 2026MIT59.6M / weekRepositoryHomepagenpmAtom feed
Your version
In short
1 changed
Release note
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.