Content pfp
Content
@
0 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
Do you prefer one, two, or a combination? @kjs and I are designing a new TypeScript schema definition for Ponder to replace schema.graphql. This makes the TS lang server very snappy by eliminating a codegen step. Also unblocks direct database access.
6 replies
2 recasts
12 reactions

Jeff Stout pfp
Jeff Stout
@stout
Why not both? Named exports for the example on the left, and a default export for the right - have your cake and eat it too 🍰🍽️
1 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
Good idea! One hesitation is that IMO in framework design it's often better to offer only one way to do things. Makes it easier to move from one Ponder app to the next, share snippets, train LLMs 😉 Don't feel strongly that this is one of those cases, though
0 reply
0 recast
0 reaction