-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added EdgeKV lib d.ts module. #142
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added comments where I think things might not be accurate... I'm curious how we expect customers to use this file?
group?: string; | ||
item: string; | ||
value: T; | ||
timeout?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't this be null too?
namespace?: string; | ||
group?: string; | ||
item: string; | ||
timeout?: number | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think this one has a timeout?
} | ||
|
||
export declare class EdgeKV { | ||
constructor(namespace?: string, group?: string, num_retries_on_timeout?: number); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how to indicate this, but it takes two constructors:
- is constructor(namespace?: string, group?: string)
- is constructor(item: EdgeKVConstructor)
where
interface EdgeKVConstructor {
namespace?: string;
group?: string;
num_retries_on_timeout?: number;
}
No description provided.