react-pdf-printer
Version:
Create pdf document using React
31 lines (30 loc) • 946 B
TypeScript
import React from 'react';
import { DocumentConfiguration } from 'model';
import { DeepPartial } from 'utilities/helperTypes';
export declare type SectionProps = {
children: React.ReactNode;
};
export declare type ArticleProps = SectionProps & {
header?: React.ReactNode;
footer?: React.ReactNode;
};
export declare type PortalDocumentProps = {
configuration?: DeepPartial<DocumentConfiguration>;
header: React.ReactNode;
footer: React.ReactNode;
onRender?: () => void;
children: React.ReactNode;
};
export declare type DocumentRef = {
render: () => void;
};
declare type ScreenProps = {
isRendering: boolean;
};
declare type ScreenElement = React.ReactElement<ScreenProps, React.JSXElementConstructor<any>>;
export declare type DocumentProps = PortalDocumentProps & {
title?: string;
renderOnInit?: boolean;
screen: ScreenElement | ((screenProps: ScreenProps) => ScreenElement);
};
export {};