[types] opencode sdk types mismatch #1646

Closed
opened 2026-02-16 17:31:56 -05:00 by yindo · 1 comment
Owner

Originally created by @Isos9 on GitHub (Sep 7, 2025).

Originally assigned to: @thdxr on GitHub.

client.session.create returns directly a Session object, but the return type is a promise of

({
    data: Session;
    error: undefined;
} | {
    data: undefined;
    error: _Error;
}) & {
    request: Request;
    response: Response;
}

And it's basically the same issue for the other endpoints covered by the sdk

Originally created by @Isos9 on GitHub (Sep 7, 2025). Originally assigned to: @thdxr on GitHub. client.session.create returns directly a Session object, but the return type is a promise of ```ts ({ data: Session; error: undefined; } | { data: undefined; error: _Error; }) & { request: Request; response: Response; } ``` And it's basically the same issue for the other endpoints covered by the sdk
yindo closed this issue 2026-02-16 17:31:56 -05:00
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1646