@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
22 lines (21 loc) • 1.54 kB
TypeScript
import { useEffect } from 'react';
import type { DependencyList, ReactNode } from 'react';
export declare const actions: Record<string, string>;
export declare const defaultRenderer: ({ value }: {
value?: any;
}) => any;
export declare const emptyRenderer: () => import("react").JSX.Element;
export declare const defaultColumn: Record<string, unknown>;
export declare const makePropGetter: (hooks: any[], meta?: Record<string, any>) => (userProps?: Record<string, any>) => any;
export declare const reduceHooks: (hooks: any[], initial: any, meta?: Record<string, any>, allowUndefined?: boolean) => any;
export declare const loopHooks: (hooks: any[], context: any, meta?: Record<string, any>) => void;
export declare function ensurePluginOrder(plugins: Array<{
pluginName?: string;
} & ((...args: any[]) => void)>, befores: string[], pluginName: string, afters?: string[]): void;
export declare function functionalUpdate(updater: any, old: any): any;
export declare function useGetLatest<T>(obj: T): () => T;
export declare const safeUseLayoutEffect: typeof useEffect;
export declare function useMountedLayoutEffect(fn: () => void, deps: DependencyList): void;
export declare function useAsyncDebounce(defaultFn: (...args: any[]) => any, defaultWait?: number): (...args: any[]) => Promise<any>;
export declare function makeRenderer(instance: any, column: any, meta?: Record<string, any>): (type: any, userProps?: Record<string, any>) => ReactNode;
export declare function flexRender(Comp: any, props: Record<string, any>): ReactNode;