You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declare function alert(message?: any): void;
declare function prompt(message?: string, _default?: string): string | null;
declare function confirm(message?: string): boolean;
Presumably alert is typed as taking any because it accepts input of any type and implicitly casts it to a string. However, testing in Chrome, Safari, and Firefox, prompt and confirm both do the same thing.
The text was updated successfully, but these errors were encountered:
Currently, we have:
Presumably
alert
is typed as takingany
because it accepts input of any type and implicitly casts it to a string. However, testing in Chrome, Safari, and Firefox,prompt
andconfirm
both do the same thing.The text was updated successfully, but these errors were encountered: