@abgov/web-components 1.37.1-alpha.3 → 1.37.1-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/common/utils.d.ts +4 -1
  2. package/index.js +3989 -3903
  3. package/package.json +1 -1
package/common/utils.d.ts CHANGED
@@ -20,7 +20,10 @@ export declare function toBoolean(value: string): boolean;
20
20
  export declare function fromBoolean(value: boolean): string;
21
21
  export declare function isValidDate(d: Date): boolean;
22
22
  export declare function validateRequired(componentName: string, props: Record<string, unknown>): void;
23
- export declare function typeValidator(message: string, values: string[], required?: boolean): [string[], (value: string | null) => void];
23
+ export declare function typeValidator(message: string, values: string[], opts?: boolean | {
24
+ required?: boolean;
25
+ deprecated?: string[];
26
+ }): [string[], (value: string | null) => void];
24
27
  export declare function getTimestamp(val?: Date): string;
25
28
  export declare function pluralize(word: string, count: number): string;
26
29
  export declare function clamp(value: number, min: number, max: number): number;