123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- import Container from './container.js'
- import Node from './node.js'
- interface DeclarationRaws extends Record<string, unknown> {
-
- before?: string
-
- between?: string
-
- important?: string
-
- value: {
- value: string
- raw: string
- }
- }
- export interface DeclarationProps {
-
- prop: string
-
- value: string
-
- important?: boolean
-
- raws?: DeclarationRaws
- }
- export default class Declaration extends Node {
- type: 'decl'
- parent: Container | undefined
- raws: DeclarationRaws
-
- prop: string
-
- value: string
-
- important: boolean
-
- variable: boolean
- constructor(defaults?: DeclarationProps)
- assign(overrides: object | DeclarationProps): this
- clone(overrides?: Partial<DeclarationProps>): this
- cloneBefore(overrides?: Partial<DeclarationProps>): this
- cloneAfter(overrides?: Partial<DeclarationProps>): this
- }
|