// Nothing here is a browser dialog, and nothing here may be reported. const confirm = (value: string): string => value; confirm("a local function that happens to share the name"); function prompt(text: string): string { return text; } prompt("a local declaration"); const dialog = { alert: () => 1, confirm: () => true, prompt: () => "" }; dialog.confirm(); dialog.alert(); dialog.prompt(); const props = { onConfirm: () => undefined }; props.onConfirm(); const confirmLabel = "Delete display"; const message = "Call alert( only in a string"; const pattern = /window\.confirm/u; // window.confirm("a comment is not code"); /* alert("nor is a block comment"); */ export { confirmLabel, message, pattern };