Skip to content

Commit

Permalink
types: Guarantee setters on stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Frank committed Jun 13, 2022
1 parent 10b378c commit 37f34d9
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.8",
"version": "0.1.9",
"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 @@ -44,7 +44,7 @@ export class HyperNamespaceProxy<T extends HyperDurable<ENV>, ENV> {
? () => Promise<unknown>
: Promise<unknown>;
} & {
[Prop in keyof T as T[Prop] extends Function ? never : `set${Capitalize<string & Prop>}`]?:
[Prop in keyof T as T[Prop] extends Function ? never : `set${Capitalize<string & Prop>}`]:
(newValue: T[Prop]) => Promise<unknown>
};
}
Expand Down

0 comments on commit 37f34d9

Please sign in to comment.