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
The as unknown as T casts are begrudgingly required due to a known limitation of the TypeScript compiler as demonstrated in the following issues for example:
Perhaps someone interested in the topic and who has time to work on it would be willing to take a look into the issue.
Either way, until a resolution is merged into the TypeScript compiler that addresses this issue, we need to use this workaround. We could also remove this if we manage find a reasonable, more fitting workaround of some sort to avoid casting in the first place. If a workaround / change of implementation comes to mind, please raise an issue on the repository or feel free to open a PR!
Activity