Type alias Source

Source: StypRule | StypRules | Promise<StypRule | StypRules> | ((this) => StypRule | StypRules | Promise<StypRule | StypRules>)

A source of CSS rules.

A dynamically updated CSS rule set can be constructed out of one or more sources by stypRules and lazyStypRules functions.

This can be one of:

  • Single StypRule instance. A StypRule.rules.self is used instead. I.e. a list containing only the rule itself.
  • A StypRules instance. It is used as is.
  • A promise of one of the above. The resolved value is used as an actual source. No rules are available until resolution.
  • A function returning one of the above. The function call result is used as an actual source. The function will be called lazily upon rules access.

Generated using TypeDoc