@types/cssbeautify
Version:
TypeScript definitions for cssbeautify
40 lines (32 loc) • 1.17 kB
Markdown
# Installation
> `npm install --save @types/cssbeautify`
# Summary
This package contains type definitions for cssbeautify (https://github.com/senchalabs/cssbeautify).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cssbeautify.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cssbeautify/index.d.ts)
````ts
interface Options {
/**
* A string used for the indentation of the declaration (default is 4
* spaces).
*/
indent?: string | undefined;
/**
* Defines the placement of open curly brace, either end-of-line (default)
* or separate-line
*/
openbrace?: "end-of-line" | "separate-line" | undefined;
/**
* Always inserts a semicolon after the last ruleset(default is false)
*/
autosemicolon?: boolean | undefined;
}
declare function beautify(cssText: string, options?: Options): string;
export = beautify;
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: none
# Credits
These definitions were written by [rictic](https://github.com/rictic).