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

interface DeclarationRaws {
    before?: string;
    between?: string;
    important?: string;
    value?: {
        raw: string;
        value: string;
    };
}

Hierarchy (view full)

  • Record<string, unknown>
    • DeclarationRaws

Properties

before?: string

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

between?: string

The symbols between the property and value for declarations.

important?: string

The content of the important statement, if it is not just !important.

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

Declaration value with comments.

Type declaration

  • raw: string
  • value: string