Skip to content

@inquirer/core@8.1.0

Compare
Choose a tag to compare
@SBoudrias SBoudrias released this 26 Apr 15:34
· 313 commits to main since this release
  • [Typescript] useState doesn't require a default value anymore; in which case it'll default to undefined
  • [Typescript] useRef doesn't require a default value anymore; in which case it'll default to undefined

Examples:

const [value, setValue] = useState<number>();
// value: number | undefined;

const [value, setValue] = useState<number>(1);
// value: number;