Skip to content

Instantly share code, notes, and snippets.

@eyeccc
Created June 13, 2019 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyeccc/a7b930f81fe49f82990c25d41224c93e to your computer and use it in GitHub Desktop.
Save eyeccc/a7b930f81fe49f82990c25d41224c93e to your computer and use it in GitHub Desktop.
export type Scalars = {
ID: string;
String: string;
Boolean: boolean;
Int: number;
Float: number;
Email: string & { readonly Email: unique symbol };
};
export type Node = {
id: Scalars["ID"];
};
export type Person = Node & {
id: Scalars["ID"];
name: Scalars["String"];
email: Scalars["Email"];
age: Scalars["Int"];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment