While implementing a simple composable to facilitate using treaty2 with Nuxt, I noticed that treaty2's Treaty namespace and TreatyResponse type were not exported.
We can currently import EdenTreaty and EdenFetch from @elysiajs/eden/treaty and @elysiajs/eden/fetch respectively, but not Treaty.
I also noticed that the types Treaty, EdenTreaty and EdenFetch were imported by the entrypoint, but were never used at all. Were they meant to be exported here ?
I'm not sure what solution would preferred, so I implemented two different solutions in two different commits:
1215bc3d124d9530623df8a0879b09b429455e42 which create a new named export: @elysiajs/eden/treaty2;
68ec5b1a4124734eed5fd56f1fdfb3f28691c455 that exports Treaty from @elysiajs/eden.
Hi,
While implementing a simple composable to facilitate using treaty2 with Nuxt, I noticed that treaty2's
Treaty
namespace andTreatyResponse
type were not exported. We can currently importEdenTreaty
andEdenFetch
from@elysiajs/eden/treaty
and@elysiajs/eden/fetch
respectively, but notTreaty
.I also noticed that the types
Treaty
,EdenTreaty
andEdenFetch
were imported by the entrypoint, but were never used at all. Were they meant to be exported here ?I'm not sure what solution would preferred, so I implemented two different solutions in two different commits:
@elysiajs/eden/treaty2
;Treaty
from@elysiajs/eden
.