Construct a type with a set of properties K of type T

interface RuleRaws {
    after?: string;
    before?: string;
    between?: string;
    ownSemicolon?: string;
    selector?: {
        raw: string;
        value: string;
    };
    semicolon?: boolean;
}

Hierarchy (view full)

  • Record<string, unknown>
    • RuleRaws

Properties

after?: string

The space symbols after the last child of the node to the end of the node.

before?: string

The space symbols before the node. It also stores * and _ symbols before the declaration (IE hack).

between?: string

The symbols between the selector and { for rules.

ownSemicolon?: string

Contains true if there is semicolon after rule.

selector?: {
    raw: string;
    value: string;
}

The rule’s selector with comments.

Type declaration

  • raw: string
  • value: string
semicolon?: boolean

Contains true if the last child has an (optional) semicolon.