You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this sample, Expand is not able to check that each entry in the select array is a key of the optional maybe property of the parent type. I'd love to be able to rely on this great library to check that I am only selecting properties that have been defined on my classes/interfaces and not be open to typos.
The majority of the sample has no errors but does_not_compile_but_I_want_the_key_check has the following:
Type '{ maybe: { select: string[]; }; }' is not assignable to type 'Expand'.
The types of 'maybe.select' are incompatible between these types.
Type 'string[]' is not assignable to type 'Select<child | undefined> | undefined'.
Type 'string[]' is not assignable to type 'never[]'.
Type 'string' is not assignable to type 'never'."
The text was updated successfully, but these errors were encountered:
In this sample,
Expand
is not able to check that each entry in the select array is a key of the optionalmaybe
property of theparent
type. I'd love to be able to rely on this great library to check that I am only selecting properties that have been defined on my classes/interfaces and not be open to typos.The majority of the sample has no errors but
does_not_compile_but_I_want_the_key_check
has the following:The text was updated successfully, but these errors were encountered: