Browse Source

ref(billing): Add const assertion to DATA_CATEGORY_INFO (#61652)

Use a const assertion here so that in this PR:
https://github.com/getsentry/getsentry/pull/12375 we may be able to
restrict the string literals of `.plural` to just include the plural
data category literals (`errors`, `attachments`, `monitor check-ins`,
etc...)
David Wang 1 year ago
parent
commit
49b8d6187b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/constants/index.tsx

+ 1 - 1
static/app/constants/index.tsx

@@ -309,7 +309,7 @@ export const DATA_CATEGORY_INFO = {
     titleName: t('Monitor Check-Ins'),
     uid: 10,
   },
-} satisfies Record<DataCategoryExact, DataCategoryInfo>;
+} as const satisfies Record<DataCategoryExact, DataCategoryInfo>;
 
 // Special Search characters
 export const NEGATION_OPERATOR = '!';