facebook / facebook/relay

Remove @ts-nocheck from generated Typescript files

Open
#4,745 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

In order to ensure type safety, generated typescript files should not be exported with `@ts-nocheck`. This is currently present in both generated types for resolvers as well as generated fragments which are referenced from components. In order to create type assertions within this file, we will need to begin type-checking these files.

Related: #4742
This is part of the requirement for the resolver context work mentioned in #4000 and #4704

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.