mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-02 22:07:06 +00:00
Merge pull request #28385 from romain-faust/imagemin-svgo
[@types/imagemin-svgo] Add type definitions
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import imagemin = require('imagemin');
|
||||
import imageminSvgo = require('imagemin-svgo');
|
||||
|
||||
imagemin(['*.svg'], {
|
||||
plugins: [
|
||||
imageminSvgo(),
|
||||
imageminSvgo({ floatPrecision: 2 })
|
||||
]
|
||||
});
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// Type definitions for imagemin-svgo 7.0
|
||||
// Project: https://github.com/imagemin/imagemin-svgo#readme
|
||||
// Definitions by: Romain Faust <https://github.com/romain-faust>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { Plugin } from 'imagemin';
|
||||
import { Options as SvgoOptions } from 'svgo';
|
||||
|
||||
declare function imageminSvgo(options?: imageminSvgo.Options): Plugin;
|
||||
|
||||
declare namespace imageminSvgo {
|
||||
type Options = SvgoOptions;
|
||||
}
|
||||
|
||||
export = imageminSvgo;
|
||||
@@ -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-svgo-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user