import * as P from '@react-pdf/primitives'; import { SafeStyle, StyleProp } from '@react-pdf/stylesheet'; import { NodeProps } from './base'; import { SafeTextInstanceNode, TextInstanceNode } from './text-instance'; export type NoteNode = { type: typeof P.Note; props: NodeProps; style?: StyleProp; box?: never; origin?: never; yogaNode?: never; children?: TextInstanceNode[]; }; export type SafeNoteNode = Omit & { style: SafeStyle; wasSplit: boolean; children?: SafeTextInstanceNode[]; };