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

interface AtRuleRaws {
    after?: string;
    afterName?: string;
    before?: string;
    between?: string;
    params?: {
        raw: string;
        value: string;
    };
    semicolon?: boolean;
}

Hierarchy (view full)

  • Record<string, unknown>
    • AtRuleRaws

Properties

after?: string

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

afterName?: string

The space between the at-rule name and its parameters.

before?: string

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

between?: string

The symbols between the last parameter and { for rules.

params?: {
    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.