primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
25 lines (21 loc) • 802 B
TypeScript
import * as React from 'react';
export declare type Booleanish = boolean | 'true' | 'false';
export declare type Numberish = number | string;
export declare type Nullable<T = void> = T | null | undefined;
//export declare type IconType<ParentProps> = React.ReactNode | ((options: IconOptions<ParentProps>) => React.ReactNode);
//export declare type TemplateType<TOptions> = React.ReactNode | ((...TOptions: any) => React.ReactNode);
export interface FormTarget<T = any> {
name: string;
id: string;
value: Nullable<T>;
checked?: boolean;
[key: string]: any;
}
export interface FormEvent<T = any, E = React.SyntheticEvent> {
originalEvent?: E;
value: Nullable<T>;
checked?: boolean;
stopPropagation(): void;
preventDefault(): void;
target: FormTarget<T>;
}