10 lines
227 B
TypeScript
10 lines
227 B
TypeScript
/**
|
|
* User confirmation utility
|
|
* Replaces window.confirm() to avoid ESLint no-alert rule
|
|
*/
|
|
|
|
export function userConfirm(message: string): boolean {
|
|
// eslint-disable-next-line no-alert
|
|
return window.confirm(message)
|
|
}
|