Skip to content

Commit c3626dd

Browse files
authored
chore(ts): Conversion of constant-based files to TS (#14411)
1 parent fb5fa25 commit c3626dd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/sentry/static/sentry/app/constants/index.jsx renamed to src/sentry/static/sentry/app/constants/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,13 @@ export const SENTRY_APP_PERMISSIONS = [
9999

100100
export const DEFAULT_TOAST_DURATION = 6000;
101101

102-
export const CSRF_COOKIE_NAME = window.csrfCookieName || 'sc';
102+
declare global {
103+
interface Window {
104+
csrfCookieName?: string;
105+
}
106+
}
107+
108+
export const CSRF_COOKIE_NAME: string = window.csrfCookieName || 'sc';
103109

104110
export const ALL_ENVIRONMENTS_KEY = '__all_environments__';
105111

0 commit comments

Comments
 (0)