{"library":"relay-compiler-language-typescript","title":"Relay Compiler TypeScript Language Plugin","description":"This package served as a language plugin for `relay-compiler`, providing TypeScript support, including the emission of type definitions for Relay artifacts. It enabled Relay users to leverage TypeScript for their GraphQL operations and component props. The current stable version is 15.0.1. Historically, it filled a critical gap by adding TypeScript capabilities to Relay's build process. However, as of Relay v13, TypeScript support is natively integrated into the core `relay-compiler`, rendering this standalone plugin obsolete. Its release cadence was tied to major Relay versions and bug fixes, but active development has ceased due to its superseded status. Developers are now advised to use the built-in TypeScript features of `relay-compiler` directly.","language":"javascript","status":"deprecated","last_verified":"Sun Apr 19","install":{"commands":["npm install relay-compiler-language-typescript"],"cli":null},"imports":["relay-compiler --language typescript --src ./src --schema data/schema.graphql --artifactDirectory ./src/__generated__","import { MyComponent_data$key } from './__generated__/MyComponent_data.graphql';","{ \"compilerOptions\": { \"banner\": \"/* &copy; 2021 Example.org - @generated code */\" } }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"devDependencies\": {\n    \"graphql\": \"^15.7.0\",\n    \"relay-compiler\": \">=12.0.0\",\n    \"typescript\": \">=4.5.0\",\n    \"relay-compiler-language-typescript\": \"^15.0.0\"\n  },\n  \"scripts\": {\n    \"relay\": \"relay-compiler --src ./src --schema data/schema.graphql --language typescript --artifactDirectory ./src/__generated__\"\n  }\n}\n\n// tsconfig.json\n{\n  \"compilerOptions\": {\n    \"module\": \"ES2015\",\n    \"target\": \"ES2020\"\n  }\n}\n\n// .babelrc\n{\n  \"plugins\": [[\"relay\", { \"artifactDirectory\": \"./src/__generated__\" }]]\n}","lang":"json","description":"Demonstrates the `package.json` setup for installing the plugin and `relay-compiler`, configuring the `relay` script, and essential `tsconfig.json` and `.babelrc` settings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}