From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- node_modules/postcss/lib/at-rule.d.ts | 47 +++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'node_modules/postcss/lib/at-rule.d.ts') diff --git a/node_modules/postcss/lib/at-rule.d.ts b/node_modules/postcss/lib/at-rule.d.ts index 5bdee38b..b2a0e0f4 100644 --- a/node_modules/postcss/lib/at-rule.d.ts +++ b/node_modules/postcss/lib/at-rule.d.ts @@ -79,16 +79,6 @@ declare namespace AtRule { * ``` */ declare class AtRule_ extends Container { - /** - * The at-rule’s name immediately follows the `@`. - * - * ```js - * const root = postcss.parse('@media print {}') - * const media = root.first - * media.name //=> 'media' - * ``` - */ - name: string /** * An array containing the layer’s children. * @@ -108,6 +98,29 @@ declare class AtRule_ extends Container { * ``` */ nodes: Container['nodes'] + parent: ContainerWithChildren | undefined + + raws: AtRule.AtRuleRaws + type: 'atrule' + constructor(defaults?: AtRule.AtRuleProps) + assign(overrides: AtRule.AtRuleProps | object): this + + clone(overrides?: Partial): this + + cloneAfter(overrides?: Partial): this + + cloneBefore(overrides?: Partial): this + /** + * The at-rule’s name immediately follows the `@`. + * + * ```js + * const root = postcss.parse('@media print {}') + * const media = root.first + * media.name //=> 'media' + * ``` + */ + get name(): string + set name(value: string) /** * The at-rule’s parameters, the values that follow the at-rule’s name * but precede any `{}` block. @@ -118,18 +131,8 @@ declare class AtRule_ extends Container { * media.params //=> 'print, screen' * ``` */ - params: string - parent: ContainerWithChildren | undefined - - raws: AtRule.AtRuleRaws - - type: 'atrule' - - constructor(defaults?: AtRule.AtRuleProps) - assign(overrides: AtRule.AtRuleProps | object): this - clone(overrides?: Partial): AtRule - cloneAfter(overrides?: Partial): AtRule - cloneBefore(overrides?: Partial): AtRule + get params(): string + set params(value: string) } declare class AtRule extends AtRule_ {} -- cgit v1.2.3