mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
changed Array<string> to string[], and added test
This commit is contained in:
@@ -655,6 +655,12 @@ function test_notification() {
|
||||
onConfirm,
|
||||
'Game Over',
|
||||
'Restart,Exit'
|
||||
);
|
||||
navigator.notification.confirm(
|
||||
'You are the winner!',
|
||||
onConfirm,
|
||||
'Game Over',
|
||||
['Restart','Exit']
|
||||
);
|
||||
navigator.notification.beep(2);
|
||||
navigator.notification.vibrate(2500);
|
||||
|
||||
Vendored
+1
-1
@@ -478,7 +478,7 @@ declare var Media: {
|
||||
interface Notification {
|
||||
alert(message: string, alertCallback: Function, title?: string, buttonName?: string): void;
|
||||
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string): void;
|
||||
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: Array<string>): void;
|
||||
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string[]): void;
|
||||
beep(times: number): void;
|
||||
vibrate(milliseconds: number): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user