@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
19 lines (18 loc) • 606 B
TypeScript
/**
* Valid types of inputs
*/
type AllowedValueTypes = string | number | Array<string | number>;
/**
* Check if a given value is allowed
* @param value The value to check for
* @returns True if the type is allowed, false otherwise
*/
export declare const isAllowedValue: (value: AllowedValueTypes) => boolean;
/**
* Compare two values if they are equal
* @param a The first value to compare
* @param b The second value to compare
* @returns True if the values are equal, false otherwise
*/
export declare const compareValues: (a: AllowedValueTypes, b: AllowedValueTypes) => boolean;
export {};