mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Add type definitions for jpegtran-bin (#25156)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
c3748d5c11
commit
8a377075d9
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for jpegtran-bin 3.2
|
||||
// Project: https://github.com/imagemin/jpegtran-bin#readme
|
||||
// Definitions by: Hirotaka Ikoma <https://github.com/hikoma>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
declare const jpegtran: string;
|
||||
export = jpegtran;
|
||||
@@ -0,0 +1,6 @@
|
||||
import { execFile } from "child_process";
|
||||
import * as jpegtran from "jpegtran-bin";
|
||||
|
||||
execFile(jpegtran, ["-outfile", "output.jpg", "input.jpg"], { encoding: "utf-8" }, (err: Error | null) => {
|
||||
console.log("Image minified!");
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jpegtran-bin-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user