react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
22 lines (21 loc) • 693 B
TypeScript
import { NodeProps } from "@intlayer/core";
import { PropsWithChildren, ReactNode } from "react";
//#region src/IntlayerNode.d.ts
type IntlayerNode<T = NodeProps['children'], AdditionalProps = Record<string, never>> = ReactNode & {
value: T;
} & AdditionalProps;
type RenderIntlayerNodeProps<T> = PropsWithChildren<{
value: T;
children: ReactNode;
additionalProps?: {
[key: string]: any;
};
}>;
declare const renderIntlayerNode: <T extends number | string | boolean | undefined | null>({
children,
value,
additionalProps
}: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
//#endregion
export { IntlayerNode, renderIntlayerNode };
//# sourceMappingURL=IntlayerNode.d.ts.map