UNPKG

@canard/schema-form-mui-plugin

Version:

Material-UI (MUI) components plugin for @canard/schema-form providing pre-built form inputs with modern MUI styling and MUI X integration

17 lines (13 loc) 441 B
export interface Fn<Params extends Array<any> = [], Return = void> { (...props: Params): Return; } export interface AsyncFn<Params extends Array<any> = [], Return = void> { (...props: Params): Promise<Return>; } export type SetStateFn<S = unknown> = ( value: S | ((prevState: S) => S), ) => void; export type Parameter< F extends Fn<[any]> | SetStateFn<any> | undefined, I extends number = 0, > = Parameters<NonNullable<F>>[I];