Function isValidStyle

  • Checks if a CSS string contains valid style declarations.

    Parameters

    • cssString: string

      The CSS string to validate.

    • Optional validProperties: string[]

      An optional array of additional valid CSS properties.

    Returns boolean

    A boolean indicating whether the CSS string is valid.

Generated using TypeDoc