Open Design Tokens
    Preparing search index...

    Function validateType

    • $type MUST be a case-sensitive string from the type list (§5.2.2). Returns the type when valid.

      Parameters

      Returns
          | "number"
          | "color"
          | "dimension"
          | "fontFamily"
          | "fontWeight"
          | "duration"
          | "cubicBezier"
          | "strokeStyle"
          | "border"
          | "transition"
          | "shadow"
          | "gradient"
          | "typography"
          | undefined