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 order for Resolvers to be fully features in TypeScript we need to ensure the compiler produces type assertions for them in the same way that type assertions are generated for Flow.
Right now there are a few places where the compiler has TODO comments and does not emit helpful types for TypeScript:
In order for Resolvers to be fully features in TypeScript we need to ensure the compiler produces type assertions for them in the same way that type assertions are generated for Flow.
Right now there are a few places where the compiler has TODO comments and does not emit helpful types for TypeScript:
relay/compiler/crates/relay-typegen/src/typescript.rs
Line 82 in 59b7680
relay/compiler/crates/relay-typegen/src/visit.rs
Line 379 in 59b7680
For testing you can find resolver tests cases in the Flow tests here and copy them into the TypeScript tests directory.
Note that after adding new fixture files you'll need to regenerate the Rust tests that pull in those fixture tests. More info here.
Related: We'll also need to remove the
@ts-nocheck
from generated TypeScript files. We'll track that in a separate issue.The text was updated successfully, but these errors were encountered: