UNPKG

1.38 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/cssbeautify`
3
4# Summary
5This package contains type definitions for CSS Beautify (https://github.com/senchalabs/cssbeautify).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cssbeautify.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cssbeautify/index.d.ts)
10````ts
11// Type definitions for CSS Beautify v0.3.1
12// Project: https://github.com/senchalabs/cssbeautify
13// Definitions by: rictic <https://github.com/rictic>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
16interface Options {
17 /**
18 * A string used for the indentation of the declaration (default is 4
19 * spaces).
20 */
21 indent?: string | undefined;
22 /**
23 * Defines the placement of open curly brace, either end-of-line (default)
24 * or separate-line
25 */
26 openbrace?: 'end-of-line'|'separate-line' | undefined;
27
28 /**
29 * Always inserts a semicolon after the last ruleset(default is false)
30 */
31 autosemicolon?: boolean | undefined;
32}
33declare function beautify(cssText: string, options?: Options): string;
34
35export = beautify;
36
37````
38
39### Additional Details
40 * Last updated: Thu, 08 Jul 2021 09:08:24 GMT
41 * Dependencies: none
42 * Global values: none
43
44# Credits
45These definitions were written by [rictic](https://github.com/rictic).
46
\No newline at end of file