fireproof icon indicating copy to clipboard operation
fireproof copied to clipboard

rationalize exported types

Open jchris opened this issue 2 years ago • 2 comments

Currently the type exports are a "just works" mess.

Here is the first place to look for how it's put together today: https://github.com/fireproof-storage/fireproof/blob/1ffdceea758f9afedcbea5bb312023bc5a64a4ad/packages/connect/scripts/types.js#L20

jchris avatar Oct 21 '23 14:10 jchris

@jchris is there any reason for us not to lean into native build tooling to generate type definitions for different targets? Just wondering if it is possible to move away from the manual work defined in the scripts/types.js module

thedanchez avatar Jan 07 '24 19:01 thedanchez

thanks for your work for far on this @thedanchez -- here is a relevant commit from an out of date PR. where @valorant-dhruv is working on exposing clock information per document update. This would allow someone to consume the changes feed and load db snapshots corresponding to each change. useful for undo. here is the code: https://github.com/fireproof-storage/fireproof/pull/33/commits/2f44f485e600dc2db569713108e56c15a73a5f2a

I'm putting it here b/c the response type's clock carrying capacity should be a core type but we haven't written it yet.

jchris avatar Jan 18 '24 15:01 jchris