Skip to content

Commit

Permalink
Use const assertion for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaoleshko committed Dec 6, 2024
1 parent 04104ec commit d73e0d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import {
HeaderBannerDisplaying,
} from "../enums";

export const CSPApiUrl = "/api/2.0/security/csp";
export const CSPApiUrl = "/api/2.0/security/csp" as const;

export const FRAME_NAME = "frameDocSpace";
export const FRAME_NAME = "frameDocSpace" as const;

export const defaultConfig: TFrameConfig = {
src: "",
Expand Down Expand Up @@ -91,9 +91,9 @@ export const defaultConfig: TFrameConfig = {
onContentReady: null,
onEditorOpen: null,
},
};
} as const;

export const cspErrorText =
"The current domain is not set in the Content Security Policy (CSP) settings.";
"The current domain is not set in the Content Security Policy (CSP) settings." as const;

export const connectErrorText = "Message bus is not connected with frame";
export const connectErrorText = "Message bus is not connected with frame" as const;

0 comments on commit d73e0d8

Please sign in to comment.