diff --git a/types/ffmpeg-static/ffmpeg-static-tests.ts b/types/ffmpeg-static/ffmpeg-static-tests.ts index 319a5e27f8..721ae192eb 100644 --- a/types/ffmpeg-static/ffmpeg-static-tests.ts +++ b/types/ffmpeg-static/ffmpeg-static-tests.ts @@ -1,3 +1,3 @@ -import * as ffmpegStatic from 'ffmpeg-static'; +import * as pathToFfmpeg from 'ffmpeg-static'; -ffmpegStatic.path; +pathToFfmpeg; // $ExpectType string diff --git a/types/ffmpeg-static/index.d.ts b/types/ffmpeg-static/index.d.ts index dfd9ce0906..f5fbd73298 100644 --- a/types/ffmpeg-static/index.d.ts +++ b/types/ffmpeg-static/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ffmpeg-static 2.0 +// Type definitions for ffmpeg-static 3.0 // Project: https://github.com/eugeneware/ffmpeg-static#readme // Definitions by: Steve Tran // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -7,4 +7,5 @@ /** * Binary location */ -export const path: string; +declare const pathToFfmpeg: string; +export = pathToFfmpeg; diff --git a/types/ffprobe-static/ffprobe-static-tests.ts b/types/ffprobe-static/ffprobe-static-tests.ts index 6565fd2ae1..3d230f52ed 100644 --- a/types/ffprobe-static/ffprobe-static-tests.ts +++ b/types/ffprobe-static/ffprobe-static-tests.ts @@ -1,3 +1,3 @@ -import * as ffprobeStatic from 'ffmpeg-static'; +import * as ffprobeStatic from 'ffprobe-static'; ffprobeStatic.path;