This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
75 lines (63 loc) · 1.8 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
interface EmmetOutputProfile {
/**
* String for one-level indentation. For example, `\t` or ` ` (N spaces)
*/
indent?: string;
/**
* Tag case: lower, upper or '' (keep as-is)
*/
tagCase?: '' | 'lower' | 'upper';
/**
* Attribute name case: lower, upper or '' (keep as-is)
* @type {String}
*/
attributeCase?: '' | 'lower' | 'upper';
/**
* Attribute value quotes: 'single' or 'double'
*/
attributeQuotes?: 'single' | 'double';
/**
* Enable output formatting (indentation and line breaks)
*/
format?: boolean;
/**
* A list of tag names that should not get inner indentation
*/
formatSkip?: string[];
/**
* A list of tag names that should *always* get inner indentation.
*/
formatForce?: string[];
/**
* How many inline sibling elements should force line break for each tag.
* Set to 0 to output all inline elements without formatting.
* Set to 1 to output all inline elements with formatting (same as block-level).
*/
inlineBreak?: number;
/**
* Produce compact notation of boolean attributes: attributes where name equals value.
* With this option enabled, output `<div contenteditable>` instead of
* `<div contenteditable="contenteditable">`
*/
compactBooleanAttributes?: boolean;
/**
* A set of boolean attributes
*/
booleanAttributes?: string[];
/**
* Style of self-closing tags: html (`<br>`), xml (`<br/>`) or xhtml (`<br />`)
*/
selfClosingStyle?: 'html' | 'xml' | 'xhtml';
/**
* A set of inline-level elements
*/
inlineElements?: string[];
/**
* A function that takes field index and optional placeholder and returns
* a string field (tabstop) for host editor. For example, a TextMate-style
* field is `$index` or `${index:placeholder}`
* @param index
* @param placeholder
*/
field(index: number, placeholder?: string): string;
}