1 | // Type definitions for CSS Beautify v0.3.1
|
2 | // Project: https://github.com/senchalabs/cssbeautify
|
3 | // Definitions by: rictic <https://github.com/rictic>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | interface Options {
|
7 | /**
|
8 | * A string used for the indentation of the declaration (default is 4
|
9 | * spaces).
|
10 | */
|
11 | indent?: string | undefined;
|
12 | /**
|
13 | * Defines the placement of open curly brace, either end-of-line (default)
|
14 | * or separate-line
|
15 | */
|
16 | openbrace?: "end-of-line" | "separate-line" | undefined;
|
17 |
|
18 | /**
|
19 | * Always inserts a semicolon after the last ruleset(default is false)
|
20 | */
|
21 | autosemicolon?: boolean | undefined;
|
22 | }
|
23 | declare function beautify(cssText: string, options?: Options): string;
|
24 |
|
25 | export = beautify;
|