/var/www/flurhymez/node_modules/postcss/lib
NameSizeModeActions
at-rule.d.ts24660644editdlrm
at-rule.js4710644editdlrm
comment.d.ts13440644editdlrm
comment.js2030644editdlrm
container.d.ts125940644editdlrm
container.js102040644editdlrm
css-syntax-error.d.ts48440644editdlrm
css-syntax-error.js23210644editdlrm
declaration.d.ts30260644editdlrm
declaration.js4950644editdlrm
document.d.ts15240644editdlrm
document.js6540644editdlrm
fromJSON.d.ts1070644editdlrm
fromJSON.js15060644editdlrm
input.d.ts28120644editdlrm
input.js50570644editdlrm
lazy-result.d.ts48200644editdlrm
lazy-result.js134680644editdlrm
list.d.ts12620644editdlrm
list.js11670644editdlrm
map-generator.js76820644editdlrm
node.d.ts116750644editdlrm
node.js70800644editdlrm
parse.d.ts890644editdlrm
parse.js11470644editdlrm
parser.js136180644editdlrm
postcss.d.ts113380644editdlrm
postcss.js26280644editdlrm
postcss.mjs9370644editdlrm
previous-map.d.ts16180644editdlrm
previous-map.js39240644editdlrm
processor.d.ts29410644editdlrm
processor.js21320644editdlrm
result.d.ts40810644editdlrm
result.js7450644editdlrm
root.d.ts18560644editdlrm
root.js12090644editdlrm
rule.d.ts23630644editdlrm
rule.js5690644editdlrm
stringifier.js81640644editdlrm
stringify.d.ts1070644editdlrm
stringify.js2130644editdlrm
symbols.js910644editdlrm
terminal-highlight.js13990644editdlrm
tokenize.js65360644editdlrm
warn-once.js2240644editdlrm
warning.d.ts19330644editdlrm
warning.js6480644editdlrm
Edit: /var/www/flurhymez/node_modules/postcss/lib/declaration.d.ts (3026B)
import Container from './container.js' import Node from './node.js' interface DeclarationRaws { /** * 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: { value: string raw: string } } export interface DeclarationProps { /** Name of the declaration. */ prop: string /** Value of the declaration. */ value: string /** Whether the declaration has an `!important` annotation. */ important?: boolean /** Information used to generate byte-to-byte equal node string as it was in the origin input. */ raws?: DeclarationRaws } /** * Represents a CSS declaration. * * ```js * Once (root, { Declaration }) { * let 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' * ``` */ export default class Declaration extends Node { type: 'decl' parent: Container | undefined raws: DeclarationRaws /** * The declaration's property name. * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * decl.prop //=> 'color' * ``` */ prop: string /** * The declaration’s value. * * This value will be cleaned of comments. If the source value contained * comments, those comments will be available in the `raws` property. * If you have not changed the value, the result of `decl.toString()` * will include the original raws value (comments and all). * * ```js * const root = postcss.parse('a { color: black }') * const decl = root.first.first * decl.value //=> 'black' * ``` */ value: string /** * `true` if the declaration has an `!important` annotation. * * ```js * const root = postcss.parse('a { color: black !important; color: red }') * root.first.first.important //=> true * root.first.last.important //=> undefined * ``` */ important: boolean /** * `true` if declaration is declaration of CSS Custom Property * or Sass variable. * * ```js * const root = postcss.parse(':root { --one: 1 }') * let one = root.first.first * one.variable //=> true * ``` * * ```js * const root = postcss.parse('$one: 1') * let one = root.first * one.variable //=> true * ``` */ variable: boolean constructor(defaults?: DeclarationProps) assign(overrides: object | DeclarationProps): this clone(overrides?: Partial): this cloneBefore(overrides?: Partial): this cloneAfter(overrides?: Partial): this }