Skip to content

Commit 431c51b

Browse files
committed
Update dependencies and code style
1 parent 8b54e60 commit 431c51b

60 files changed

Lines changed: 3333 additions & 3306 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/at-rule.d.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import Container, { ContainerProps } from './container.js'
22

33
declare namespace AtRule {
44
export interface AtRuleRaws extends Record<string, unknown> {
5-
/**
6-
* The space symbols before the node. It also stores `*`
7-
* and `_` symbols before the declaration (IE hack).
8-
*/
9-
before?: string
10-
115
/**
126
* The space symbols after the last child of the node to the end of the node.
137
*/
@@ -19,29 +13,35 @@ declare namespace AtRule {
1913
afterName?: string
2014

2115
/**
22-
* The symbols between the last parameter and `{` for rules.
16+
* The space symbols before the node. It also stores `*`
17+
* and `_` symbols before the declaration (IE hack).
2318
*/
24-
between?: string
19+
before?: string
2520

2621
/**
27-
* Contains `true` if the last child has an (optional) semicolon.
22+
* The symbols between the last parameter and `{` for rules.
2823
*/
29-
semicolon?: boolean
24+
between?: string
3025

3126
/**
3227
* The rule’s selector with comments.
3328
*/
3429
params?: {
35-
value: string
3630
raw: string
31+
value: string
3732
}
33+
34+
/**
35+
* Contains `true` if the last child has an (optional) semicolon.
36+
*/
37+
semicolon?: boolean
3838
}
3939

4040
export interface AtRuleProps extends ContainerProps {
4141
/** Name of the at-rule. */
4242
name: string
4343
/** Parameters following the name of the at-rule. */
44-
params?: string | number
44+
params?: number | string
4545
/** Information used to generate byte-to-byte equal node string as it was in the origin input. */
4646
raws?: AtRuleRaws
4747
}
@@ -76,10 +76,6 @@ declare namespace AtRule {
7676
* ```
7777
*/
7878
declare class AtRule_ extends Container {
79-
type: 'atrule'
80-
parent: Container | undefined
81-
raws: AtRule.AtRuleRaws
82-
8379
/**
8480
* The at-rule’s name immediately follows the `@`.
8581
*
@@ -90,7 +86,6 @@ declare class AtRule_ extends Container {
9086
* ```
9187
*/
9288
name: string
93-
9489
/**
9590
* The at-rule’s parameters, the values that follow the at-rule’s name
9691
* but precede any `{}` block.
@@ -102,12 +97,17 @@ declare class AtRule_ extends Container {
10297
* ```
10398
*/
10499
params: string
100+
parent: Container | undefined
101+
102+
raws: AtRule.AtRuleRaws
103+
104+
type: 'atrule'
105105

106106
constructor(defaults?: AtRule.AtRuleProps)
107-
assign(overrides: object | AtRule.AtRuleProps): this
107+
assign(overrides: AtRule.AtRuleProps | object): this
108108
clone(overrides?: Partial<AtRule.AtRuleProps>): this
109-
cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
110109
cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): this
110+
cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
111111
}
112112

113113
declare class AtRule extends AtRule_ {}

lib/comment.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ declare namespace Comment {
2020
}
2121

2222
export interface CommentProps extends NodeProps {
23-
/** Content of the comment. */
24-
text: string
2523
/** Information used to generate byte-to-byte equal node string as it was in the origin input. */
2624
raws?: CommentRaws
25+
/** Content of the comment. */
26+
text: string
2727
}
2828

2929
// eslint-disable-next-line @typescript-eslint/no-use-before-define
@@ -46,20 +46,20 @@ declare namespace Comment {
4646
* explained above.
4747
*/
4848
declare class Comment_ extends Node {
49-
type: 'comment'
5049
parent: Container | undefined
5150
raws: Comment.CommentRaws
52-
5351
/**
5452
* The comment's text.
5553
*/
5654
text: string
5755

56+
type: 'comment'
57+
5858
constructor(defaults?: Comment.CommentProps)
59-
assign(overrides: object | Comment.CommentProps): this
59+
assign(overrides: Comment.CommentProps | object): this
6060
clone(overrides?: Partial<Comment.CommentProps>): this
61-
cloneBefore(overrides?: Partial<Comment.CommentProps>): this
6261
cloneAfter(overrides?: Partial<Comment.CommentProps>): this
62+
cloneBefore(overrides?: Partial<Comment.CommentProps>): this
6363
}
6464

6565
declare class Comment extends Comment_ {}

0 commit comments

Comments
 (0)