mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[clean-css] move semicolonAfterLastProperty to FormatOptions (#45111)
* [clean-css] move semicolonAfterLastProperty to FormatOptions * Add declare keyword to all interfaces * Format test * Revert "Format test" This reverts commit 70cd4b6cd15ec59703d2bcb9f909a9d86b658080. * remove declare
This commit is contained in:
parent
07d88fbb9e
commit
866aa4eaf3
@ -96,3 +96,15 @@ CleanCssOptions = { returnPromise: false };
|
||||
new CleanCSS(CleanCssOptions).minify(source, (error: any, minified: CleanCSS.Output): void => {
|
||||
console.log(minified.styles);
|
||||
});
|
||||
|
||||
// test clean-css semicolonAfterLastProperty option works as expected
|
||||
source = 'a{font-weight:bold;}';
|
||||
CleanCssOptions = {
|
||||
format: {
|
||||
semicolonAfterLastProperty: true
|
||||
}
|
||||
};
|
||||
|
||||
new CleanCSS(CleanCssOptions).minify(source, (error: any, minified: CleanCSS.Output): void => {
|
||||
console.log(minified.styles);
|
||||
});
|
||||
|
||||
10
types/clean-css/index.d.ts
vendored
10
types/clean-css/index.d.ts
vendored
@ -389,6 +389,11 @@ declare namespace CleanCSS {
|
||||
* Controls maximum line length; defaults to `false`
|
||||
*/
|
||||
wrapAt?: false | number;
|
||||
|
||||
/**
|
||||
* Controls removing trailing semicolons in rule; defaults to `false` - means remove
|
||||
*/
|
||||
semicolonAfterLastProperty?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -507,11 +512,6 @@ declare namespace CleanCSS {
|
||||
*/
|
||||
tidySelectors?: boolean;
|
||||
|
||||
/**
|
||||
* Controls removing trailing semicolons in rule; defaults to `false` - means remove
|
||||
*/
|
||||
semicolonAfterLastProperty?: boolean;
|
||||
|
||||
/**
|
||||
* Defines a callback for fine-grained property optimization; defaults to no-op
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user