@@ -83,9 +83,9 @@ export type ComplexSafelist = {
83
83
/**
84
84
* You can safelist selectors and their children based on a regular
85
85
* expression with `safelist.deep`
86
- *
86
+ *
87
87
* @example
88
- *
88
+ *
89
89
* ```ts
90
90
* const purgecss = await new PurgeCSS().purge({
91
91
* content: [],
@@ -95,10 +95,10 @@ export type ComplexSafelist = {
95
95
* }
96
96
* })
97
97
* ```
98
- *
99
- * In this example, selectors such as `.bg-red .child-of-bg` will be left
98
+ *
99
+ * In this example, selectors such as `.bg-red .child-of-bg` will be left
100
100
* in the final CSS, even if `child-of-bg` is not found.
101
- *
101
+ *
102
102
*/
103
103
deep ?: RegExp [ ] ;
104
104
greedy ?: RegExp [ ] ;
@@ -113,7 +113,7 @@ export type UserDefinedSafelist = StringRegExpArray | ComplexSafelist;
113
113
114
114
/**
115
115
* Options used by PurgeCSS to remove unused CSS
116
- *
116
+ *
117
117
* @public
118
118
*/
119
119
export interface UserDefinedOptions {
@@ -136,7 +136,7 @@ export interface UserDefinedOptions {
136
136
/** {@inheritDoc Options.rejectedCss } */
137
137
rejectedCss ?: boolean ;
138
138
/** {@inheritDoc Options.sourceMap } */
139
- sourceMap ?: boolean | postcss . SourceMapOptions & { to ?: string }
139
+ sourceMap ?: boolean | ( postcss . SourceMapOptions & { to ?: string } ) ;
140
140
/** {@inheritDoc Options.stdin } */
141
141
stdin ?: boolean ;
142
142
/** {@inheritDoc Options.stdout } */
@@ -157,29 +157,29 @@ export interface UserDefinedOptions {
157
157
* Options used by PurgeCSS to remove unused CSS
158
158
* Those options are used internally
159
159
* @see {@link UserDefinedOptions } for the options defined by the user
160
- *
160
+ *
161
161
* @public
162
162
*/
163
163
export interface Options {
164
164
/**
165
165
* You can specify content that should be analyzed by PurgeCSS with an
166
166
* array of filenames or globs. The files can be HTML, Pug, Blade, etc.
167
- *
167
+ *
168
168
* @example
169
- *
169
+ *
170
170
* ```ts
171
171
* await new PurgeCSS().purge({
172
172
* content: ['index.html', '*.js', '*.html', '*.vue'],
173
173
* css: ['css/app.css']
174
174
* })
175
175
* ```
176
- *
176
+ *
177
177
* @example
178
178
* PurgeCSS also works with raw content. To do this, you need to pass an
179
179
* object with the `raw` property instead of a filename. To work properly
180
180
* with custom extractors you need to pass the `extension` property along
181
181
* with the raw content.
182
- *
182
+ *
183
183
* ```ts
184
184
* await new PurgeCSS().purge({
185
185
* content: [
@@ -211,9 +211,9 @@ export interface Options {
211
211
/**
212
212
* If there are any unused \@font-face rules in your css, you can remove
213
213
* them by setting the `fontFace` option to `true`.
214
- *
214
+ *
215
215
* @defaultValue `false`
216
- *
216
+ *
217
217
* @example
218
218
* ```ts
219
219
* await new PurgeCSS().purge({
@@ -229,7 +229,7 @@ export interface Options {
229
229
rejected : boolean ;
230
230
rejectedCss : boolean ;
231
231
/** {@inheritDoc postcss#SourceMapOptions } */
232
- sourceMap : boolean | postcss . SourceMapOptions & { to ?: string }
232
+ sourceMap : boolean | ( postcss . SourceMapOptions & { to ?: string } ) ;
233
233
stdin : boolean ;
234
234
stdout : boolean ;
235
235
variables : boolean ;
0 commit comments