Files
NapCatQQ/.pnpm-store/v3/files/1b/9b7facad972a64448f51d5e35d6a6816bca19e02e967d658c19182c2009820b1a5e2419ff1584b4ec8e9550ce97254941e7312462d4ac4151cefdc2c0b5b9c
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
641 B
Plaintext

import * as React from 'react';
type RenderFunction<P> = (props: P) => React.ReactNode;
type RenderFnProps<P extends {}> = {
Component: React.FunctionComponent<P> | React.ComponentClass<P> | string;
props: P;
renderCustom?: RenderFunction<P>;
};
/**
* Render a component with custom render function
*
* @param Component The component to be rendered
* @param renderCustom The custom render function
* @param props The props to be passed to the component
* @returns React.ReactElement
*/
declare function renderFn<P extends {}>({ Component, props, renderCustom }: RenderFnProps<P>): React.ReactNode;
export { renderFn };