mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
4e36732801
commit
adfffcc981
@ -1,3 +1,3 @@
|
||||
import * as ffmpegStatic from 'ffmpeg-static';
|
||||
import * as pathToFfmpeg from 'ffmpeg-static';
|
||||
|
||||
ffmpegStatic.path;
|
||||
pathToFfmpeg; // $ExpectType string
|
||||
|
||||
5
types/ffmpeg-static/index.d.ts
vendored
5
types/ffmpeg-static/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
import * as ffprobeStatic from 'ffmpeg-static';
|
||||
import * as ffprobeStatic from 'ffprobe-static';
|
||||
|
||||
ffprobeStatic.path;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user