Skip to content

Commit 36fd5f5

Browse files
authored
ref(ui): Add types for typescript 5.5 (#73583)
1 parent 9fc23cc commit 36fd5f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/app/components/feedback/feedbackOnboarding/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function OnboardingContent({currentProject}: {currentProject: Project}) {
185185
const webApiPlatform = feedbackWebApiPlatforms.includes(currentPlatform.id);
186186

187187
const npmOnlyFramework = feedbackNpmPlatforms
188-
.filter(p => p !== 'javascript')
188+
.filter((p): p is PlatformKey => p !== 'javascript')
189189
.includes(currentPlatform.id);
190190

191191
const showRadioButtons =

static/app/components/replaysOnboarding/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function OnboardingContent({currentProject}: {currentProject: Project}) {
205205
const npmOnlyFramework =
206206
currentProject.platform &&
207207
replayFrontendPlatforms
208-
.filter(p => p !== 'javascript')
208+
.filter((p): p is PlatformKey => p !== 'javascript')
209209
.includes(currentProject.platform);
210210

211211
const showRadioButtons =

0 commit comments

Comments
 (0)