refactor: use "as const" for constant mappings (#28980)
This commit is contained in:
parent
a699dfdf83
commit
961b74b2ac
4 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue