Replies: 1 comment 3 replies
-
|
that looks like tsgo bug, because it's a pretty straighforward generic type so the message doesn't make sense it's hard to say if there is reliance on undefined behavior since not everything is clearly documented, and it can get pretty complex. i am also not familiar with typescript internals so pull requests are welcome improving the types. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to see how my project's compilation performs with tsgo, since the latest version is expected to have no differences in type-checking, but it fails to compile due to the error
Type 'StaticParamList' is not generic.:I found a similar issue microsoft/typescript-go#1968 (comment) here, but unsure whether the react-navigation type is relying on undefined behavior or if there's a bug in the new compiler. If there's another way to formulate the type to introduce some laziness avoiding the circular reference so that it compiles in current tsgo, it would be convenient for getting the benefits of tsgo for quick typechecking in a watch loop, even if its other features aren't yet ready.
Beta Was this translation helpful? Give feedback.
All reactions