/opt/canhelp/node_modules/postcss/lib
NameSizeModeActions
at-rule.d.ts33600644editdlrm
at-rule.js4710644editdlrm
comment.d.ts16840644editdlrm
comment.js2030644editdlrm
container.d.ts140470644editdlrm
container.js106470644editdlrm
css-syntax-error.d.ts64510644editdlrm
css-syntax-error.js34020644editdlrm
declaration.d.ts38370644editdlrm
declaration.js4950644editdlrm
document.d.ts18880644editdlrm
document.js6540644editdlrm
fromJSON.d.ts1620644editdlrm
fromJSON.js15060644editdlrm
input.d.ts51300644editdlrm
input.js67520644editdlrm
lazy-result.d.ts49410644editdlrm
lazy-result.js135620644editdlrm
list.d.ts14260644editdlrm
list.js12270644editdlrm
map-generator.js100310644editdlrm
no-work-result.d.ts15070644editdlrm
no-work-result.js26210644editdlrm
node.d.ts146980644editdlrm
node.js107190644editdlrm
parse.d.ts1350644editdlrm
parse.js11470644editdlrm
parser.js148460644editdlrm
postcss.d.mts10490644editdlrm
postcss.d.ts114610644editdlrm
postcss.js28980644editdlrm
postcss.mjs9800644editdlrm
previous-map.d.ts17610644editdlrm
previous-map.js39840644editdlrm
processor.d.ts33490644editdlrm
processor.js17380644editdlrm
result.d.ts43500644editdlrm
result.js7380644editdlrm
root.d.ts22570644editdlrm
root.js12390644editdlrm
rule.d.ts29010644editdlrm
rule.js5690644editdlrm
stringifier.d.ts13640644editdlrm
stringifier.js82200644editdlrm
stringify.d.ts1650644editdlrm
stringify.js2130644editdlrm
symbols.js910644editdlrm
terminal-highlight.js13990644editdlrm
tokenize.js65380644editdlrm
warn-once.js2560644editdlrm
warning.d.ts29280644editdlrm
warning.js7390644editdlrm
Edit: /opt/canhelp/node_modules/postcss/lib/declaration.d.ts (3837B)
import { ContainerWithChildren } from './container.js' import Node from './node.js' declare namespace Declaration { export interface DeclarationRaws extends Record { /** * The space symbols before the node. It also stores `*` * and `_` symbols before the declaration (IE hack). */ before?: string /** * The symbols between the property and value for declarations. */ between?: string /** * The content of the important statement, if it is not just `!important`. */ important?: string /** * Declaration value with comments. */ value?: { raw: string value: string } } export interface DeclarationProps { /** Whether the declaration has an `!important` annotation. */ important?: boolean /** Name of the declaration. */ prop: string /** Information used to generate byte-to-byte equal node string as it was in the origin input. */ raws?: DeclarationRaws /** Value of the declaration. */ value: string } export { Declaration_ as default } } /** * It represents a class that handles * [CSS declarations](https://developer.mozilla.org/en-US/docs/Web/CSS/Syntax#css_declarations) * * ```js * Once (root, { Declaration }) { * const color = new Declaration({ prop: 'color', value: 'black' }) * root.append(color) * } * ``` * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first?.first * * decl.type //=> 'decl' * decl.toString() //=> ' color: black' * ``` */ declare class Declaration_ extends Node { parent: ContainerWithChildren | undefined raws: Declaration.DeclarationRaws type: 'decl' /** * It represents a specificity of the declaration. * * If true, the CSS declaration will have an * [important](https://developer.mozilla.org/en-US/docs/Web/CSS/important) * specifier. * * ```js * const root = postcss.parse('a { color: black !important; color: red }') * * root.first.first.important //=> true * root.first.last.important //=> undefined * ``` */ get important(): boolean set important(value: boolean) /** * The property name for a CSS declaration. * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * * decl.prop //=> 'color' * ``` */ get prop(): string set prop(value: string) /** * The property value for a CSS declaration. * * Any CSS comments inside the value string will be filtered out. * CSS comments present in the source value will be available in * the `raws` property. * * Assigning new `value` would ignore the comments in `raws` * property while compiling node to string. * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * * decl.value //=> 'black' * ``` */ 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. * * ```js * const root = postcss.parse(':root { --one: 1 }') * const one = root.first.first * * one.variable //=> true * ``` * * ```js * const root = postcss.parse('$one: 1') * const one = root.first * * one.variable //=> true * ``` */ get variable(): boolean constructor(defaults?: Declaration.DeclarationProps) assign(overrides: Declaration.DeclarationProps | object): this clone(overrides?: Partial): this cloneAfter(overrides?: Partial): this cloneBefore(overrides?: Partial): this } declare class Declaration extends Declaration_ {} export = Declaration