facebook / facebook/relay

Import using type specifier

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

Description

Our TypeScript is failing because Relay is attempting to import types without a type specifier, i.e.

```ts
import { FragmentRefs } from "relay-runtime";
```

This should be:

```ts
import { type FragmentRefs } from "relay-runtime";
```

There should be either the default or there needs to be an option for this in the relay compiler

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.