Reads the text entered for a value of the given type. Returns:
{kind: 'invalid', text}
undefined
STRING values are taken as typed: they are not trimmed, and '' is a value.
''
Reads the text entered for a value of the given type. Returns:
{kind: 'invalid', text}when the text is not a value of the type, keeping the text as typed so it can be shown and fixed;undefinedwhen the input is empty.STRING values are taken as typed: they are not trimmed, and
''is a value.