Skip to content

Commit f0afd43

Browse files
lucas-tortoraclaude
andcommitted
fix(types): restore return types and model returned sub-objects
Regenerated from the improved emitter: - Methods that return a known object are typed as that object instead of `any` (verified against source) — sessions/checkouts/batches return their own class, stream factories return their stream class, etc. - Objects the README documents under their own receiver (a server, socket, message, extension, or the autobase apply `host`) are now modeled as helper classes and wired to the method/callback that produces them, instead of being dropped. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c866766 commit f0afd43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ export class Hyperdrive {
170170
/**
171171
* Get a read-only snapshot of a previous version.
172172
*/
173-
checkout(version: any): any
173+
checkout(version: any): Hyperdrive
174174

175175
/**
176176
* Useful for atomically mutate the drive, has the same interface as Hyperdrive.
177177
*/
178-
batch(): any
178+
batch(): Hyperdrive
179179

180180
setActive(bool: any): any
181181

0 commit comments

Comments
 (0)