refactor: use "as const" for constant mappings (#28980)

This commit is contained in:
Milan Burda
2021-05-04 23:12:49 +02:00
committed by GitHub
parent a699dfdf83
commit 961b74b2ac
4 changed files with 11 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
export const webViewEvents: Record<string, string[]> = {
export const webViewEvents: Record<string, readonly string[]> = {
'load-commit': ['url', 'isMainFrame'],
'did-attach': [],
'did-finish-load': [],
@@ -33,4 +33,4 @@ export const webViewEvents: Record<string, string[]> = {
'found-in-page': ['result'],
'did-change-theme-color': ['themeColor'],
'update-target-url': ['url']
};
} as const;