Skip to content

Conversation

@shigeyf
Copy link

@shigeyf shigeyf commented Mar 9, 2022

No description provided.

Copy link
Contributor

@kayoub-akamai kayoub-akamai left a 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;
Copy link
Contributor

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;
Copy link
Contributor

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);
Copy link
Contributor

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:

  1. is constructor(namespace?: string, group?: string)
  2. is constructor(item: EdgeKVConstructor)
    where
    interface EdgeKVConstructor {
    namespace?: string;
    group?: string;
    num_retries_on_timeout?: number;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants