summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib/declaration.d.ts
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
commitefbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch)
tree2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/postcss/lib/declaration.d.ts
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/postcss/lib/declaration.d.ts')
-rw-r--r--node_modules/postcss/lib/declaration.d.ts37
1 files changed, 20 insertions, 17 deletions
diff --git a/node_modules/postcss/lib/declaration.d.ts b/node_modules/postcss/lib/declaration.d.ts
index a5db984a..e707ad67 100644
--- a/node_modules/postcss/lib/declaration.d.ts
+++ b/node_modules/postcss/lib/declaration.d.ts
@@ -63,6 +63,19 @@ declare namespace Declaration {
* ```
*/
declare class Declaration_ extends Node {
+ parent: ContainerWithChildren | undefined
+ raws: Declaration.DeclarationRaws
+
+ type: 'decl'
+
+ constructor(defaults?: Declaration.DeclarationProps)
+ assign(overrides: Declaration.DeclarationProps | object): this
+
+ clone(overrides?: Partial<Declaration.DeclarationProps>): this
+
+ cloneAfter(overrides?: Partial<Declaration.DeclarationProps>): this
+
+ cloneBefore(overrides?: Partial<Declaration.DeclarationProps>): this
/**
* It represents a specificity of the declaration.
*
@@ -77,10 +90,9 @@ declare class Declaration_ extends Node {
* root.first.last.important //=> undefined
* ```
*/
- important: boolean
-
- parent: ContainerWithChildren | undefined
+ get important(): boolean
+ set important(value: boolean)
/**
* The property name for a CSS declaration.
*
@@ -91,12 +103,9 @@ declare class Declaration_ extends Node {
* decl.prop //=> 'color'
* ```
*/
- prop: string
-
- raws: Declaration.DeclarationRaws
-
- type: 'decl'
+ get prop(): string
+ set prop(value: string)
/**
* The property value for a CSS declaration.
*
@@ -114,8 +123,8 @@ declare class Declaration_ extends Node {
* decl.value //=> 'black'
* ```
*/
- value: string
-
+ get value(): string
+ set value(value: string)
/**
* It represents a getter that returns `true` if a declaration starts with
* `--` or `$`, which are used to declare variables in CSS and SASS/SCSS.
@@ -134,13 +143,7 @@ declare class Declaration_ extends Node {
* one.variable //=> true
* ```
*/
- variable: boolean
-
- constructor(defaults?: Declaration.DeclarationProps)
- assign(overrides: Declaration.DeclarationProps | object): this
- clone(overrides?: Partial<Declaration.DeclarationProps>): Declaration
- cloneAfter(overrides?: Partial<Declaration.DeclarationProps>): Declaration
- cloneBefore(overrides?: Partial<Declaration.DeclarationProps>): Declaration
+ get variable(): boolean
}
declare class Declaration extends Declaration_ {}