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
NaturalAbstractModelService.mapCreation() and other map* are loosely typed with unknown because the whole class is not aware of the entire graphql query. Instead it is only aware of a sub-part of the graphql query.
A potential solution is to refactor so that TCreate does not mean:
NaturalAbstractModelService.mapCreation()
and othermap*
are loosely typed withunknown
because the whole class is not aware of the entire graphql query. Instead it is only aware of a sub-part of the graphql query.A potential solution is to refactor so that
TCreate
does not mean:but instead the whole query:
And the the original
TCreate
meaning should be reproducible with something like https://stackoverflow.com/a/73278870/37706. This might also help to type keys (the"createUser"
): https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html#capitalizestringtypeSo final usage would be:
The text was updated successfully, but these errors were encountered: