Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

GraphQL to TypeScript type, no code gen. Written purely in TypeScript type. With Prisma-like query syntax fully type-safe. Should cover almost all of the GraphQL specs, now. Here's a demo.

100,697 görüntüleme • 2 yıl önce •via X (Twitter)

6 Yorum

SaltyAom profil fotoğrafı
SaltyAom2 yıl önce

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

SaltyAom profil fotoğrafı
SaltyAom2 yıl önce

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

SaltyAom profil fotoğrafı
SaltyAom2 yıl önce

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.

trash profil fotoğrafı
trash2 yıl önce

gimme duh code

HanielU profil fotoğrafı
HanielU2 yıl önce

The real question is: what theme is this?

SaltyAom profil fotoğrafı
SaltyAom2 yıl önce

@hypersonic_dev

Benzer Videolar