GRAPHQL → TYPESCRIPT
Paste a GraphQL SDL schema and instantly get TypeScript interfaces, enums, and type aliases. Supports objects, inputs, enums, unions, scalars — live conversion, no backend.
GRAPHQL SDL INPUT
TYPESCRIPT OUTPUT
// TypeScript will appear hereCONVERSION RULES
Scalars
String/ID→string, Int/Float→number, Boolean→boolean
Objects & Inputs
Become TypeScript
interfaceEnums
Become TypeScript
enum with string valuesUnions
Become
type A = B | C union typesNon-null (!)
Required — no null wrapping
Nullable
T | null | undefined or Maybe<T>Lists
Become
Array<T>Custom scalars
Typed as
unknown with comment