Skip to content

Commit

Permalink
types: Guarantee props of HyperDurable on stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Frank committed Jun 13, 2022
1 parent 44bebaf commit d90b300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ticketbridge/hyper-durable",
"version": "0.1.6",
"version": "0.1.7",
"description": "Object-like access to Durable Object properties and methods",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class HyperNamespaceProxy<T extends HyperDurable<ENV>, ENV> {
ref: new (state: DurableObjectState, env: ENV) => T
);
get(id: DurableObjectId): DurableObjectStub & {
[Prop in keyof T]?:
[Prop in keyof T]:
T[Prop] extends Function
? () => Promise<unknown>
: Promise<unknown>;
Expand Down

0 comments on commit d90b300

Please sign in to comment.