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
|
@ -8,7 +8,7 @@ import { IPC_MESSAGES } from '@electron/internal/common/ipc-messages';
|
|||
|
||||
const DEPRECATED_EVENTS: Record<string, string> = {
|
||||
'page-title-updated': 'page-title-set'
|
||||
};
|
||||
} as const;
|
||||
|
||||
const dispatchEvent = function (
|
||||
webView: WebViewImpl, eventName: string, eventKey: string, ...args: Array<any>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue