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