h3
h3 copied to clipboard
SessionManager types elided
Environment
not relevant h3 version: 1.15.3
Reproduction
just look at the build output
Describe the bug
this is the type of useSession
declare function useSession<T extends SessionDataT = SessionDataT>(event: H3Event | CompatEvent, config: SessionConfig): Promise<{
readonly id: any;
readonly data: T;
update: (update: SessionUpdate<T>) => Promise</*elided*/ any>;
clear: () => Promise</*elided*/ any>;
}>;
but it should be circular like this
https://github.com/h3js/h3/blob/855efcb53b7f5d94e5438387b42083c24c4ae7b0/src/utils/session.ts#L29-L34
Additional context
No response
Logs
(fix landed via #1025 pending release)