Skip to content

Commit

Permalink
Merge pull request #117 from ryuzaki01/client-env-ts
Browse files Browse the repository at this point in the history
+ Fix Typescript for NetworkOptions.env
  • Loading branch information
nplasterer authored Sep 17, 2023
2 parents b5c3b65 + b2d89cb commit ef2ca46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,16 @@ export class Client {
}

export type ClientOptions = NetworkOptions;
export enum Env {
local = 'local',
dev = 'dev',
production = 'production'
}
export type NetworkOptions = {
/**
* Specify which XMTP environment to connect to. (default: `dev`)
*/
env: "local" | "dev" | "production";
env: keyof typeof Env;
/**
* identifier that's included with API requests.
*
Expand Down

0 comments on commit ef2ca46

Please sign in to comment.