Skip to content

Commit d91741b

Browse files
committed
Define a new type for project environment
1 parent 647e18c commit d91741b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/sdk/src/server/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export type OAuthCredentials = {
1616
clientSecret: string;
1717
};
1818

19+
/**
20+
* The environment in which the server client is running (e.g., "production",
21+
* "development").
22+
*/
23+
export type ProjectEnvironment = "development" | "production"
24+
1925
/**
2026
* Options for creating a server-side client.
2127
* This is used to configure the BackendClient instance.
@@ -25,7 +31,7 @@ export type BackendClientOpts = {
2531
* The environment in which the server client is running (e.g., "production",
2632
* "development").
2733
*/
28-
environment?: string;
34+
environment?: ProjectEnvironment;
2935

3036
/**
3137
* The credentials to use for authentication against the Pipedream API.

0 commit comments

Comments
 (0)