@@ -138,30 +138,18 @@ export interface PlatformConfig {
138138}
139139
140140/**
141- * @see PlatformConfig.caseStyle
141+ * The case style of a platform defines the casing used for sentry SDK
142+ * functions / keywords. For example `before-send` would become `BeforeSend`
143+ * if the caseStyle is configured as PascalCase.
142144 */
143- export enum PlatformCaseStyle {
144- CANONICAL = 'canonical' ,
145- CAMEL_CASE = 'camelCase' ,
146- PASCAL_CASE = 'PascalCase' ,
147- SNAKE_CASE = 'snake_case' ,
148- }
145+ export type PlatformCaseStyle = 'canonical' | 'camelCase' | 'PascalCase' | 'snake_case' ;
149146
150147/**
151- * @see PlatformConfig.supportLevel
148+ * Is this a first-party or third-party SDK?
152149 */
153- export enum PlatformSupportLevel {
154- PRODUCTION = 'production' ,
155- COMMUNITY = 'community' ,
156- }
150+ export type PlatformSupportLevel = 'production' | 'community' ;
157151
158152/**
159- * @see PlatformConfig. categories
153+ * Possible types of categories.
160154 */
161- export enum PlatformCategory {
162- BROWSER = 'browser' ,
163- DESKTOP = 'desktop' ,
164- MOBILE = 'mobile' ,
165- SERVER = 'server' ,
166- SERVERLESS = 'serverless' ,
167- }
155+ export type PlatformCategory = 'browser' | 'desktop' | 'mobile' | 'server' | 'serverless' ;
0 commit comments