mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #23401 from timc13/fix-vimeo__player
[vimeo__player] Player should be the default export
This commit is contained in:
Vendored
+4
-2
@@ -1,6 +1,8 @@
|
||||
// Type definitions for @vimeo/player 2.0
|
||||
// Project: https://github.com/vimeo/player.js
|
||||
// Definitions by: Denis Yılmaz <https://github.com/denisyilmaz>, Felix Albert <f.albert.work@icloud.com>
|
||||
// Definitions by: Denis Yılmaz <https://github.com/denisyilmaz>
|
||||
// Felix Albert <f.albert.work@icloud.com>
|
||||
// Tim Chen <https://github.com/timc13>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function myMethod(a: string): string;
|
||||
@@ -23,7 +25,7 @@ export interface TypeError extends Error {name: "TypeError"; message: string; me
|
||||
export type EventName = "play" | "pause" | "ended" | "timeupdate" | "progress" | "seeked" | "texttrackchange" | "cuechange" | "cuepoint" | "volumechange" | "error" | "loaded" | string;
|
||||
export type EventCallback = (data: any) => any;
|
||||
|
||||
export class Player {
|
||||
export default class Player {
|
||||
constructor(element: HTMLIFrameElement|HTMLElement|string, options: Options);
|
||||
|
||||
on(event: EventName, callback: EventCallback): void;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Player } from '@vimeo/player';
|
||||
import Player from '@vimeo/player';
|
||||
|
||||
// based on README.md of @vimeo/player >> https://github.com/vimeo/player.js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user