UNPKG

@public-ui/components

Version:

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

16 lines (15 loc) 681 B
import type { Generic } from 'adopted-style-sheets'; import type { AlertProps, InternalAlertProps } from '../components'; import type { Stringified } from '../types'; export type MsgPropType = AlertProps & { _description: string; }; export type InternMsgPropType = Partial<InternalAlertProps & { description: string; }>; export type PropMsg = { msg: MsgPropType; }; export declare const validateMsg: (component: Generic.Element.Component, value?: Stringified<MsgPropType>) => void; export declare function convertMsgToInternMsg(msg?: MsgPropType): InternMsgPropType | undefined; export declare function checkHasMsg(msg?: InternMsgPropType, touched?: boolean): boolean;