Variable RefStypRule

RefStypRule: {
    by<T>(selector, mappings) => RefStypRule<T>;
}

Type declaration

  • by:function
    • Constructs a CSS rule referrer that maps original CSS properties accordingly to the given mappings.

      Typeparam

      T CSS properties structure of referenced rule.

      Type Parameters

      Parameters

      • selector: DoqrySelector

        CSS selector of target rule.

      • mappings: Mappings<T> | EventKeeper<[Mappings<T>]> | ((this, root) => Mappings<T> | EventKeeper<[Mappings<T>]>)

        Either a mappings of CSS properties, an event keeper sending such mappings, or a function returning one of them and accepting a root CSS rule as its only argument. The constructed reference will be relative to as its only parameter.

      Returns RefStypRule<T>

      New CSS rule key instance.

Generated using TypeDoc