diff --git a/package.json b/package.json index c6d5b7c6..e1929b6f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "type": "git", "url": "https://github.com/ableplayer/ableplayer.git" }, - "main": "build/ableplayer.dist.js", + "main": "build/ableplayer.min.js", "types": "build/ableplayer.d.ts", "scripts": { "build": "grunt" diff --git a/scripts/ableplayer.d.ts b/scripts/ableplayer.d.ts index 607a1a07..f893d8f6 100644 --- a/scripts/ableplayer.d.ts +++ b/scripts/ableplayer.d.ts @@ -4,7 +4,7 @@ declare module 'ableplayer' { } export class AblePlayer{ - constructor(media: HTMLVideoElement | null, options: AblePlayerOptions); + constructor(media: HTMLVideoElement | null, options: AblePlayerOptions | null); getDuration(): Promise; } }