We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract
The return type for extract is derived incorrectly which leads to typing inconsistencies.
A fix is already open for review.
In the ExtractedValue type, V['value'] is not distributed across conditionals as expected, leading to incorrect typing for extract's return type.
ExtractedValue
V['value']
type Value = ExtractedValue<ExtractValue, ExtractMap> is string | string[] | undefined.
type Value = ExtractedValue<ExtractValue, ExtractMap>
string | string[] | undefined
type Value = ExtractedValue<ExtractValue, ExtractMap> should be unknown, based on ExtractDescriptorFn's unknown return type.
unknown
ExtractDescriptorFn
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The return type for
extract
is derived incorrectly which leads to typing inconsistencies.A fix is already open for review.
In the
ExtractedValue
type,V['value']
is not distributed across conditionals as expected, leading to incorrect typing forextract
's return type.Current Behavior
type Value = ExtractedValue<ExtractValue, ExtractMap>
isstring | string[] | undefined
.Expected Behavior
type Value = ExtractedValue<ExtractValue, ExtractMap>
should beunknown
, based onExtractDescriptorFn
'sunknown
return type.The text was updated successfully, but these errors were encountered: