UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

13 lines (12 loc) 616 B
import type { Generic } from 'adopted-style-sheets'; import type { AlertProps } from '../components'; import type { Stringified } from '../types'; export type MsgPropType = Omit<AlertProps, '_label' | '_variant'> & { _description: string; }; export type PropMsg = { msg: Stringified<MsgPropType>; }; export declare const validateMsg: (component: Generic.Element.Component, value?: Stringified<MsgPropType>) => void; export declare function checkHasMsg(msg?: Stringified<MsgPropType>, touched?: boolean): boolean; export declare function normalizeMsg(msg?: Stringified<MsgPropType>): MsgPropType | undefined;