@types/svgo
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -13,5 +13,5 @@ // Type definitions for svgo 2.3 | ||
export interface DefaultPlugin<N extends string, P = never> { | ||
active?: boolean; | ||
active?: boolean | undefined; | ||
name: N; | ||
params?: P; | ||
params?: P | undefined; | ||
} | ||
@@ -36,7 +36,7 @@ | ||
/** @default true */ | ||
newlines?: boolean; | ||
newlines?: boolean | undefined; | ||
/** @default true */ | ||
trim?: boolean; | ||
trim?: boolean | undefined; | ||
/** @default true */ | ||
spaces?: boolean; | ||
spaces?: boolean | undefined; | ||
} | ||
@@ -57,13 +57,13 @@ >; | ||
/** @default true */ | ||
remove?: boolean; | ||
remove?: boolean | undefined; | ||
/** @default true */ | ||
minify?: boolean; | ||
minify?: boolean | undefined; | ||
/** @default '' */ | ||
prefix?: string; | ||
prefix?: string | undefined; | ||
/** @default [] */ | ||
preserve?: any[]; | ||
preserve?: any[] | undefined; | ||
/** @default [] */ | ||
preservePrefixes?: any[]; | ||
preservePrefixes?: any[] | undefined; | ||
/** @default false */ | ||
force?: boolean; | ||
force?: boolean | undefined; | ||
} | ||
@@ -79,9 +79,9 @@ >; | ||
/** @default 3 */ | ||
floatPrecision?: number; | ||
floatPrecision?: number | undefined; | ||
/** @default true */ | ||
leadingZero?: boolean; | ||
leadingZero?: boolean | undefined; | ||
/** @default true */ | ||
defaultPx?: boolean; | ||
defaultPx?: boolean | undefined; | ||
/** @default true */ | ||
convertToPx?: boolean; | ||
convertToPx?: boolean | undefined; | ||
} | ||
@@ -97,9 +97,9 @@ >; | ||
/** @default 3 */ | ||
floatPrecision?: number; | ||
floatPrecision?: number | undefined; | ||
/** @default true */ | ||
leadingZero?: boolean; | ||
leadingZero?: boolean | undefined; | ||
/** @default true */ | ||
defaultPx?: boolean; | ||
defaultPx?: boolean | undefined; | ||
/** @default true */ | ||
convertToPx?: boolean; | ||
convertToPx?: boolean | undefined; | ||
} | ||
@@ -120,11 +120,11 @@ >; | ||
/** @default false */ | ||
currentColor?: boolean; | ||
currentColor?: boolean | undefined; | ||
/** @default true */ | ||
names2hex?: boolean; | ||
names2hex?: boolean | undefined; | ||
/** @default true */ | ||
rgb2hex?: boolean; | ||
rgb2hex?: boolean | undefined; | ||
/** @default true */ | ||
shorthex?: boolean; | ||
shorthex?: boolean | undefined; | ||
/** @default true */ | ||
shortname?: boolean; | ||
shortname?: boolean | undefined; | ||
} | ||
@@ -145,35 +145,35 @@ >; | ||
/** @default true */ | ||
applyTransforms?: boolean; | ||
applyTransforms?: boolean | undefined; | ||
/** @default true */ | ||
applyTransformsStroked?: boolean; | ||
applyTransformsStroked?: boolean | undefined; | ||
makeArcs?: { | ||
/** @default 2.5 */ | ||
threshold?: number; | ||
threshold?: number | undefined; | ||
/** @default 0.5 */ | ||
tolerance?: number; | ||
}; | ||
tolerance?: number | undefined; | ||
} | undefined; | ||
/** @default true */ | ||
straightCurves?: boolean; | ||
straightCurves?: boolean | undefined; | ||
/** @default true */ | ||
lineShorthands?: boolean; | ||
lineShorthands?: boolean | undefined; | ||
/** @default true */ | ||
curveSmoothShorthands?: boolean; | ||
curveSmoothShorthands?: boolean | undefined; | ||
/** @default 3 */ | ||
floatPrecision?: number; | ||
floatPrecision?: number | undefined; | ||
/** @default 5 */ | ||
transformPrecision?: number; | ||
transformPrecision?: number | undefined; | ||
/** @default true */ | ||
removeUseless?: boolean; | ||
removeUseless?: boolean | undefined; | ||
/** @default true */ | ||
collapseRepeated?: boolean; | ||
collapseRepeated?: boolean | undefined; | ||
/** @default true */ | ||
utilizeAbsolute?: boolean; | ||
utilizeAbsolute?: boolean | undefined; | ||
/** @default true */ | ||
leadingZero?: boolean; | ||
leadingZero?: boolean | undefined; | ||
/** @default true */ | ||
negativeExtraSpace?: boolean; | ||
negativeExtraSpace?: boolean | undefined; | ||
/** @default false */ | ||
noSpaceAfterFlags?: boolean; | ||
noSpaceAfterFlags?: boolean | undefined; | ||
/** @default false */ | ||
forceAbsolutePath?: boolean; | ||
forceAbsolutePath?: boolean | undefined; | ||
} | ||
@@ -189,3 +189,3 @@ >; | ||
/** @default false */ | ||
convertArcs?: boolean; | ||
convertArcs?: boolean | undefined; | ||
} | ||
@@ -201,3 +201,3 @@ >; | ||
/** @default false */ | ||
keepImportant?: boolean; | ||
keepImportant?: boolean | undefined; | ||
} | ||
@@ -213,23 +213,23 @@ >; | ||
/** @default true */ | ||
convertToShorts?: boolean; | ||
convertToShorts?: boolean | undefined; | ||
/** @default 3 */ | ||
floatPrecision?: number; | ||
floatPrecision?: number | undefined; | ||
/** @default 5 */ | ||
transformPrecision?: number; | ||
transformPrecision?: number | undefined; | ||
/** @default true */ | ||
matrixToTransform?: boolean; | ||
matrixToTransform?: boolean | undefined; | ||
/** @default true */ | ||
shortTranslate?: boolean; | ||
shortTranslate?: boolean | undefined; | ||
/** @default true */ | ||
shortScale?: boolean; | ||
shortScale?: boolean | undefined; | ||
/** @default true */ | ||
shortRotate?: boolean; | ||
shortRotate?: boolean | undefined; | ||
/** @default true */ | ||
removeUseless?: boolean; | ||
removeUseless?: boolean | undefined; | ||
/** @default true */ | ||
collapseIntoOne?: boolean; | ||
collapseIntoOne?: boolean | undefined; | ||
/** @default true */ | ||
leadingZero?: boolean; | ||
leadingZero?: boolean | undefined; | ||
/** @default false */ | ||
negativeExtraSpace?: boolean; | ||
negativeExtraSpace?: boolean | undefined; | ||
} | ||
@@ -245,9 +245,9 @@ >; | ||
/** @default true */ | ||
onlyMatchedOnce?: boolean; | ||
onlyMatchedOnce?: boolean | undefined; | ||
/** @default true */ | ||
removeMatchedSelectors?: boolean; | ||
removeMatchedSelectors?: boolean | undefined; | ||
/** @default ['', 'screen'] */ | ||
useMqs?: string[]; | ||
useMqs?: string[] | undefined; | ||
/** @default [''] */ | ||
usePseudos?: string[]; | ||
usePseudos?: string[] | undefined; | ||
} | ||
@@ -263,11 +263,11 @@ >; | ||
/** @default true */ | ||
collapseRepeated?: boolean; | ||
collapseRepeated?: boolean | undefined; | ||
/** @default false */ | ||
force?: boolean; | ||
force?: boolean | undefined; | ||
/** @default true */ | ||
leadingZero?: boolean; | ||
leadingZero?: boolean | undefined; | ||
/** @default true */ | ||
negativeExtraSpace?: boolean; | ||
negativeExtraSpace?: boolean | undefined; | ||
/** @default false */ | ||
noSpaceAfterFlags?: boolean; | ||
noSpaceAfterFlags?: boolean | undefined; | ||
} | ||
@@ -289,9 +289,9 @@ >; | ||
/** @default false */ | ||
force?: boolean; | ||
force?: boolean | undefined; | ||
/** @default true */ | ||
ids?: boolean; | ||
ids?: boolean | undefined; | ||
/** @default true */ | ||
classes?: boolean; | ||
classes?: boolean | undefined; | ||
/** @default true */ | ||
tags?: boolean; | ||
tags?: boolean | undefined; | ||
}; | ||
@@ -323,7 +323,7 @@ } | ||
/** @default '__' */ | ||
delim?: string; | ||
delim?: string | undefined; | ||
/** @default true */ | ||
prefixIds?: boolean; | ||
prefixIds?: boolean | undefined; | ||
/** @default true */ | ||
prefixClassNames?: boolean; | ||
prefixClassNames?: boolean | undefined; | ||
} | ||
@@ -344,7 +344,7 @@ >; | ||
/** @default ':' */ | ||
elemSeparator?: string; | ||
elemSeparator?: string | undefined; | ||
/** @default false */ | ||
preserveCurrentColor?: boolean; | ||
preserveCurrentColor?: boolean | undefined; | ||
/** @default [] */ | ||
attrs?: any[]; | ||
attrs?: any[] | undefined; | ||
} | ||
@@ -365,3 +365,3 @@ >; | ||
/** @default true */ | ||
removeAny?: boolean; | ||
removeAny?: boolean | undefined; | ||
} | ||
@@ -387,3 +387,3 @@ >; | ||
/** @default [] */ | ||
additionalNamespaces?: any[]; | ||
additionalNamespaces?: any[] | undefined; | ||
} | ||
@@ -399,5 +399,5 @@ >; | ||
/** @default [] */ | ||
id?: any[]; | ||
id?: any[] | undefined; | ||
/** @default [] */ | ||
class?: any[]; | ||
class?: any[] | undefined; | ||
} | ||
@@ -423,7 +423,7 @@ >; | ||
/** @default true */ | ||
text?: boolean; | ||
text?: boolean | undefined; | ||
/** @default true */ | ||
tspan?: boolean; | ||
tspan?: boolean | undefined; | ||
/** @default true */ | ||
tref?: boolean; | ||
tref?: boolean | undefined; | ||
} | ||
@@ -439,31 +439,31 @@ >; | ||
/** @default true */ | ||
isHidden?: boolean; | ||
isHidden?: boolean | undefined; | ||
/** @default true */ | ||
displayNone?: boolean; | ||
displayNone?: boolean | undefined; | ||
/** @default true */ | ||
opacity0?: boolean; | ||
opacity0?: boolean | undefined; | ||
/** @default true */ | ||
circleR0?: boolean; | ||
circleR0?: boolean | undefined; | ||
/** @default true */ | ||
ellipseRX0?: boolean; | ||
ellipseRX0?: boolean | undefined; | ||
/** @default true */ | ||
ellipseRY0?: boolean; | ||
ellipseRY0?: boolean | undefined; | ||
/** @default true */ | ||
rectWidth0?: boolean; | ||
rectWidth0?: boolean | undefined; | ||
/** @default true */ | ||
rectHeight0?: boolean; | ||
rectHeight0?: boolean | undefined; | ||
/** @default true */ | ||
patternWidth0?: boolean; | ||
patternWidth0?: boolean | undefined; | ||
/** @default true */ | ||
patternHeight0?: boolean; | ||
patternHeight0?: boolean | undefined; | ||
/** @default true */ | ||
imageWidth0?: boolean; | ||
imageWidth0?: boolean | undefined; | ||
/** @default true */ | ||
imageHeight0?: boolean; | ||
imageHeight0?: boolean | undefined; | ||
/** @default true */ | ||
pathEmptyD?: boolean; | ||
pathEmptyD?: boolean | undefined; | ||
/** @default true */ | ||
polylineEmptyPoints?: boolean; | ||
polylineEmptyPoints?: boolean | undefined; | ||
/** @default true */ | ||
polygonEmptyPoints?: boolean; | ||
polygonEmptyPoints?: boolean | undefined; | ||
} | ||
@@ -514,15 +514,15 @@ >; | ||
/** @default true */ | ||
unknownContent?: boolean; | ||
unknownContent?: boolean | undefined; | ||
/** @default true */ | ||
unknownAttrs?: boolean; | ||
unknownAttrs?: boolean | undefined; | ||
/** @default true */ | ||
defaultAttrs?: boolean; | ||
defaultAttrs?: boolean | undefined; | ||
/** @default true */ | ||
uselessOverrides?: boolean; | ||
uselessOverrides?: boolean | undefined; | ||
/** @default true */ | ||
keepDataAttrs?: boolean; | ||
keepDataAttrs?: boolean | undefined; | ||
/** @default true */ | ||
keepAriaAttrs?: boolean; | ||
keepAriaAttrs?: boolean | undefined; | ||
/** @default false */ | ||
keepRoleAttr?: boolean; | ||
keepRoleAttr?: boolean | undefined; | ||
} | ||
@@ -548,9 +548,9 @@ >; | ||
/** @default true */ | ||
stroke?: boolean; | ||
stroke?: boolean | undefined; | ||
/** @default true */ | ||
fill?: boolean; | ||
fill?: boolean | undefined; | ||
/** @default false */ | ||
removeNone?: boolean; | ||
removeNone?: boolean | undefined; | ||
/** @default false */ | ||
hasStyleOrScript?: boolean; | ||
hasStyleOrScript?: boolean | undefined; | ||
} | ||
@@ -588,3 +588,3 @@ >; | ||
*/ | ||
order?: string[]; | ||
order?: string[] | undefined; | ||
} | ||
@@ -654,3 +654,3 @@ >; | ||
type: 'perItem' | 'perItemReverse' | 'full'; | ||
params?: P; | ||
params?: P | undefined; | ||
fn: (ast: any, params: P, info: any) => any; | ||
@@ -665,3 +665,3 @@ } | ||
}; | ||
path?: string; | ||
path?: string | undefined; | ||
} | ||
@@ -673,49 +673,49 @@ | ||
/** @default '<!DOCTYPE' */ | ||
doctypeStart?: string; | ||
doctypeStart?: string | undefined; | ||
/** @default '>' */ | ||
doctypeEnd?: string; | ||
doctypeEnd?: string | undefined; | ||
/** @default '<?' */ | ||
procInstStart?: string; | ||
procInstStart?: string | undefined; | ||
/** @default '?>' */ | ||
procInstEnd?: string; | ||
procInstEnd?: string | undefined; | ||
/** @default '<' */ | ||
tagOpenStart?: string; | ||
tagOpenStart?: string | undefined; | ||
/** @default '>' */ | ||
tagOpenEnd?: string; | ||
tagOpenEnd?: string | undefined; | ||
/** @default '</' */ | ||
tagCloseStart?: string; | ||
tagCloseStart?: string | undefined; | ||
/** @default '>' */ | ||
tagCloseEnd?: string; | ||
tagCloseEnd?: string | undefined; | ||
/** @default '<' */ | ||
tagShortStart?: string; | ||
tagShortStart?: string | undefined; | ||
/** @default '/>' */ | ||
tagShortEnd?: string; | ||
tagShortEnd?: string | undefined; | ||
/** @default '="' */ | ||
attrStart?: string; | ||
attrStart?: string | undefined; | ||
/** @default '"' */ | ||
attrEnd?: string; | ||
attrEnd?: string | undefined; | ||
/** @default '<!--' */ | ||
commentStart?: string; | ||
commentStart?: string | undefined; | ||
/** @default '-->' */ | ||
commentEnd?: string; | ||
commentEnd?: string | undefined; | ||
/** @default '<![CDATA[' */ | ||
cdataStart?: string; | ||
cdataStart?: string | undefined; | ||
/** @default ']]>' */ | ||
cdataEnd?: string; | ||
cdataEnd?: string | undefined; | ||
/** @default '' */ | ||
textStart?: string; | ||
textStart?: string | undefined; | ||
/** @default '' */ | ||
textEnd?: string; | ||
textEnd?: string | undefined; | ||
/** @default 4 */ | ||
indent?: number; | ||
indent?: number | undefined; | ||
/** @default /[&'"<>]/g */ | ||
regEntities?: RegExp; | ||
regEntities?: RegExp | undefined; | ||
/** @default /[&"<>]/g */ | ||
regValEntities?: RegExp; | ||
regValEntities?: RegExp | undefined; | ||
/** @default encodeEntity */ | ||
encodeEntity?: (char?: string) => string; | ||
encodeEntity?: ((char?: string) => string) | undefined; | ||
/** @default false */ | ||
pretty?: boolean; | ||
pretty?: boolean | undefined; | ||
/** @default true */ | ||
useShortTags?: boolean; | ||
useShortTags?: boolean | undefined; | ||
} | ||
@@ -725,13 +725,13 @@ | ||
/** @default true */ | ||
strict?: boolean; | ||
strict?: boolean | undefined; | ||
/** @default false */ | ||
trim?: boolean; | ||
trim?: boolean | undefined; | ||
/** @default true */ | ||
normalize?: boolean; | ||
normalize?: boolean | undefined; | ||
/** @default true */ | ||
lowercase?: boolean; | ||
lowercase?: boolean | undefined; | ||
/** @default true */ | ||
xmlns?: boolean; | ||
xmlns?: boolean | undefined; | ||
/** @default true */ | ||
position?: boolean; | ||
position?: boolean | undefined; | ||
} | ||
@@ -749,17 +749,17 @@ | ||
/** Output as Data URI string. */ | ||
datauri?: 'base64' | 'enc' | 'unenc'; | ||
datauri?: 'base64' | 'enc' | 'unenc' | undefined; | ||
/** Precision of floating point numbers. Will be passed to each plugin that suppors this param. */ | ||
floatPrecision?: number; | ||
floatPrecision?: number | undefined; | ||
/** Use full set of plugins. */ | ||
full?: boolean; | ||
full?: boolean | undefined; | ||
path?: string; | ||
path?: string | undefined; | ||
/** Pass over SVGs multiple times to ensure all optimizations are applied */ | ||
multipass?: boolean; | ||
multipass?: boolean | undefined; | ||
/** Options for rendering optimized SVG from AST. */ | ||
js2svg?: Js2SvgOptions; | ||
js2svg?: Js2SvgOptions | undefined; | ||
@@ -770,6 +770,6 @@ /** | ||
*/ | ||
plugins?: Plugin[]; | ||
plugins?: Plugin[] | undefined; | ||
/** Options for parsing original SVG into AST. */ | ||
svg2js?: Svg2JsOptions; | ||
svg2js?: Svg2JsOptions | undefined; | ||
} | ||
@@ -776,0 +776,0 @@ |
{ | ||
"name": "@types/svgo", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "TypeScript definitions for svgo", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svgo", | ||
"license": "MIT", | ||
@@ -52,4 +53,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "f9c132a0dbe3985ff78e69390087fdc372e4ea39f6f9a21898472bdd247fea9c", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "38adadbc9361517430ac34f4554d77252f87f83149c32574efe95729d8693fe4", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 29 Mar 2021 08:01:09 GMT | ||
* Last updated: Fri, 02 Jul 2021 22:33:14 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
24715