mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
options argument in constructor is optional
This commit is contained in:
Vendored
+1
-1
@@ -25,7 +25,7 @@ export type EventName = "play" | "pause" | "ended" | "timeupdate" | "progress" |
|
||||
export type EventCallback = (data: any) => any;
|
||||
|
||||
export class Player {
|
||||
constructor(element: HTMLIFrameElement|HTMLElement|string, options: Options);
|
||||
constructor(element: HTMLIFrameElement|HTMLElement|string, options?: Options);
|
||||
|
||||
on(event: EventName, callback: EventCallback): void;
|
||||
off(event: EventName, callback?: EventCallback): void;
|
||||
|
||||
Reference in New Issue
Block a user