MCPcopy
hub / github.com/getsentry/sentry / decodeList

Function decodeList

static/app/utils/queryString.tsx:117–122  ·  view source on GitHub ↗
(value: string[] | string | undefined | null)

Source from the content-addressed store, hash-verified

115}
116
117export function decodeList(value: string[] | string | undefined | null): string[] {
118 if (!value) {
119 return [];
120 }
121 return Array.isArray(value) ? value : typeof value === 'string' ? [value] : [];
122}
123
124// This function has multiple signatures to help with typing in callers.
125export function decodeInteger(value: QueryValue): number | undefined;

Callers 15

DataWidgetViewerModalFunction · 0.90
renderMethod · 0.90
getSeriesSelectionFunction · 0.90
useDeadRageSelectorsFunction · 0.90
decodeFieldsFunction · 0.90
collectQueryStringByKeyFunction · 0.90
titlesDecoderFunction · 0.90
useResourceModuleFiltersFunction · 0.90
WebVitalsDetailPanelFunction · 0.90

Calls

no outgoing calls

Tested by 1

titlesDecoderFunction · 0.72