mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 19:04:13 +08:00
[@types/imagemin-gifsicle] Add type definitions
This commit is contained in:
9
types/imagemin-gifsicle/imagemin-gifsicle-tests.ts
Normal file
9
types/imagemin-gifsicle/imagemin-gifsicle-tests.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import imagemin = require('imagemin');
|
||||
import imageminGifsicle = require('imagemin-gifsicle');
|
||||
|
||||
imagemin(['*.png'], {
|
||||
plugins: [
|
||||
imageminGifsicle(),
|
||||
imageminGifsicle({ colors: 255 })
|
||||
]
|
||||
});
|
||||
20
types/imagemin-gifsicle/index.d.ts
vendored
Normal file
20
types/imagemin-gifsicle/index.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Type definitions for imagemin-gifsicle 5.2
|
||||
// Project: https://github.com/imagemin/imagemin-gifsicle#readme
|
||||
// Definitions by: Romain Faust <https://github.com/romain-faust>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { Plugin } from 'imagemin';
|
||||
|
||||
declare function imageminGifsicle(options?: imageminGifsicle.Options): Plugin;
|
||||
|
||||
declare namespace imageminGifsicle {
|
||||
interface Options {
|
||||
colors?: number;
|
||||
interlaced?: boolean;
|
||||
optimizationLevel?: number;
|
||||
}
|
||||
}
|
||||
|
||||
export = imageminGifsicle;
|
||||
23
types/imagemin-gifsicle/tsconfig.json
Normal file
23
types/imagemin-gifsicle/tsconfig.json
Normal file
@@ -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",
|
||||
"imagemin-gifsicle-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/imagemin-gifsicle/tslint.json
Normal file
1
types/imagemin-gifsicle/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user