@inquirer/core@8.1.0
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 toundefined
- [Typescript]
useRef
doesn't require a default value anymore; in which case it'll default toundefined
Examples:
const [value, setValue] = useState<number>();
// value: number | undefined;
const [value, setValue] = useState<number>(1);
// value: number;