@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
13 lines (12 loc) • 837 B
TypeScript
import { TagEditorProps } from './interfaces';
export interface ValidationError {
key?: string;
value?: string;
}
export declare function validate(tags: ReadonlyArray<TagEditorProps.Tag>, keyDirtyState: ReadonlyArray<boolean>, i18nStrings: TagEditorProps.I18nStrings, charRegex?: RegExp): ReadonlyArray<ValidationError | undefined>;
export declare const awsPrefixCheck: (value: string) => boolean;
export declare const emptyKeyCheck: (value: string) => boolean;
export declare const maxKeyLengthCheck: (value: string) => boolean | "";
export declare const duplicateKeyCheck: (value: string, keyCache?: Record<string, number | undefined> | undefined) => boolean;
export declare const maxValueLengthCheck: (value: string) => boolean | "";
export declare const invalidCharCheck: (value: string, validCharRegex?: RegExp) => boolean;