@devlander/colors
Version:
Color utility package used between packages
7 lines (6 loc) • 311 B
TypeScript
/**
* Checks if the provided string is a valid RGBA color format.
* @param rgba The string to validate as RGBA (e.g., "rgba(255,0,128,0.5)" or "rgba(255%, 0%, 50%, 0.5)").
* @returns True if the string is a valid RGBA format, false otherwise.
*/
export declare const isValidRgba: (rgba: string) => boolean;