GraphQL to TypeScript type, no code gen.
23K followers
100,734 views
6 Comments
Comments from the original post on X (Twitter)

@saltyAom
It can parse: - type - input - mutation - interface - enum - directive - union - fragment - single/multiline comment - Custom Scalar via generic Basically, covered most basic need for using GraphQL
19 likes

@saltyAom
Caveat: - Directive should be top-level - TypeScript Template Literal is greedy, and can't fit many comments atm (I think I can improve it) - Can read around ~9000 locs and limited to around ~900 types
11 likes

@saltyAom
What will I do: Opensource this thing once it's ready, allowing anyone to use this package to extend their GraphQL library/codebase, free to use. I wrote it in like a day, so it's not quite ready, stay tuned until then.
15 likes

@trashh_dev
gimme duh code
11 likes

@hyprsonic_dev
The real question is: what theme is this?
3 likes

@saltyAom
@hypersonic_dev
13 likes
