ffmpeg-static-3.0.0-export path as default instead of module.path (#41322)

* export path instead of module.path

* update name to match package docs

* update test to catch invalid import

* header version bump

* fix common mistake for spacing

* removing `ffprobe-static` typings
these typings no longer seem relevant to to ffmpeg-static

* Revert "removing `ffprobe-static` typings"

This reverts commit 268fcc7c6d0703483aed41550dd2570916a44d0f.

* fix ffprobe-static import

* fix dtslint test
This commit is contained in:
David Sharp 2020-01-13 16:41:09 -05:00 committed by Armando Aguirre
parent 4e36732801
commit adfffcc981
3 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,3 @@
import * as ffmpegStatic from 'ffmpeg-static';
import * as pathToFfmpeg from 'ffmpeg-static';
ffmpegStatic.path;
pathToFfmpeg; // $ExpectType string

View File

@ -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 <https://github.com/iamstevetran>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -7,4 +7,5 @@
/**
* Binary location
*/
export const path: string;
declare const pathToFfmpeg: string;
export = pathToFfmpeg;

View File

@ -1,3 +1,3 @@
import * as ffprobeStatic from 'ffmpeg-static';
import * as ffprobeStatic from 'ffprobe-static';
ffprobeStatic.path;