h3 icon indicating copy to clipboard operation
h3 copied to clipboard

SessionManager types elided

Open kaaax0815 opened this issue 7 months ago • 1 comments

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


kaaax0815 avatar May 16 '25 10:05 kaaax0815

(fix landed via #1025 pending release)

pi0 avatar Jun 04 '25 21:06 pi0