Skip to content

Commit 293dc18

Browse files
committed
fix(core): update client options to allow explicit undefined
1 parent 993303c commit 293dc18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/types-hoist/options.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
7878
*
7979
* @default undefined
8080
*/
81-
dsn?: string;
81+
dsn?: string | undefined;
8282

8383
/**
8484
* Sets the release. Release names are strings, but some formats are detected by Sentry and might be
@@ -88,7 +88,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
8888
*
8989
* @default undefined
9090
*/
91-
release?: string;
91+
release?: string | undefined;
9292

9393
/**
9494
* The current environment of your application (e.g. "production").
@@ -98,15 +98,15 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
9898
*
9999
* @default "production"
100100
*/
101-
environment?: string;
101+
environment?: string | undefined;
102102

103103
/**
104104
* Sets the distribution of the application. Distributions are used to disambiguate build or
105105
* deployment variants of the same release of an application.
106106
*
107107
* @default undefined
108108
*/
109-
dist?: string;
109+
dist?: string | undefined;
110110

111111
/**
112112
* List of integrations that should be installed after SDK was initialized.

0 commit comments

Comments
 (0)