123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import Container, { ContainerProps } from './container.js'
- interface RuleRaws extends Record<string, unknown> {
-
- before?: string
-
- after?: string
-
- between?: string
-
- semicolon?: boolean
-
- ownSemicolon?: string
-
- selector?: {
- value: string
- raw: string
- }
- }
- export interface RuleProps extends ContainerProps {
-
- selector?: string
-
- selectors?: string[]
-
- raws?: RuleRaws
- }
- export default class Rule extends Container {
- type: 'rule'
- parent: Container | undefined
- raws: RuleRaws
-
- selector: string
-
- selectors: string[]
- constructor(defaults?: RuleProps)
- assign(overrides: object | RuleProps): this
- clone(overrides?: Partial<RuleProps>): this
- cloneBefore(overrides?: Partial<RuleProps>): this
- cloneAfter(overrides?: Partial<RuleProps>): this
- }
|