Skip to content

Commit

Permalink
Update AtRule#nodes documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-we committed Feb 3, 2024
1 parent d8a3309 commit e288c8d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/at-rule.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,25 @@ declare class AtRule_ extends Container {
* ```
*/
name: string
/**
* An array containing the layer’s children.
*
* ```js
* const root = postcss.parse('@layer example { a { color: black } }')
* const layer = root.first
* layer.nodes.length //=> 1
* layer.nodes[0].selector //=> 'a'
* ```
*
* Can be `undefinded` if the at-rule has no body.
*
* ```js
* const root = postcss.parse('@layer a, b, c;')
* const layer = root.first
* layer.nodes //=> undefined
* ```
*/
nodes: Container['nodes']
/**
* The at-rule’s parameters, the values that follow the at-rule’s name
* but precede any `{}` block.
Expand Down

0 comments on commit e288c8d

Please sign in to comment.