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
While working on mapped types (#157), I found the following
interface X { a: 2, A: 4, b: 6 } type UT<Type> = { [Property in keyof Type as Capitalize<string & Property>]: Type[Property] }; declare let x: UT<X>; x.A
x.A: 2 | 4
This is difficult because Property contribution is set inside
Property
The argument could be fixed via
CovariantContribution::CaseInsenstive
TypeId::CASE_INSENSITIVE
The actual lookup is a bit more complex
get_property_unbound
or
or-like
slice_matches
Also
function x<T>(u: Uppercase<T>): T
x("hi"): CaseInsensitive<"hi">
The text was updated successfully, but these errors were encountered:
I think this was added in #157. There exists the CaseInsensitive type + mapping for inferred results. But no test for it yet
CaseInsensitive
Sorry, something went wrong.
kaleidawave
No branches or pull requests
While working on mapped types (#157), I found the following
x.A: 2 | 4
This is difficult because
Property
contribution is set insideThe argument could be fixed via
CovariantContribution::CaseInsenstive
TypeId::CASE_INSENSITIVE
alias type (similar to existing intrinsics)The actual lookup is a bit more complex
get_property_unbound
with PropertyKey where it can be anor
(oror-like
through a big or) should collect possiblesslice_matches
should have a case insensitive boolean parameter?Also
function x<T>(u: Uppercase<T>): T
.x("hi"): CaseInsensitive<"hi">
The text was updated successfully, but these errors were encountered: