Skip to content

Commit

Permalink
build(api): generate new api
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnobile committed Sep 18, 2023
1 parent 60594a6 commit 94fdb82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions build/api/react-client.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export interface RichTextAnchorElement<CustomElements extends RichTextElement =
}

// @public (undocumented)
export type RichTextBlock = Record<string, unknown>;
export type RichTextBlock = Readonly<Record<string, unknown>>;

// @public (undocumented)
export interface RichTextBoldLeaf extends RichTextLeaf {
Expand Down Expand Up @@ -312,15 +312,15 @@ export const RichTextRenderer: <CustomElements extends RichTextElement<never, ne
// @public (undocumented)
export interface RichTextRendererBlockProps<CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = never> {
// (undocumented)
blocks: RichTextBlock[];
readonly blocks: RichTextBlock[];
// (undocumented)
referenceDiscriminationField?: string;
readonly referenceDiscriminationField?: string;
// (undocumented)
referenceRenderers?: Record<string, ReferenceRenderer<any, CustomElements, CustomLeaves>>;
readonly referenceRenderers?: Record<string, ReferenceRenderer<any, CustomElements, CustomLeaves>>;
// (undocumented)
referencesField?: string;
readonly referencesField?: string;
// (undocumented)
sourceField?: string;
readonly sourceField?: string;
}

// @public (undocumented)
Expand All @@ -330,7 +330,7 @@ export class RichTextRendererError extends Error {
// @public (undocumented)
export interface RichTextRendererFieldProps {
// (undocumented)
source: string | null;
readonly source: string | null;
}

// @public (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ import { RichTextRenderMetadataContext } from './RichTextRenderMetadataContext'
import type { RootEditorNode } from './RootEditorNode'

export interface RichTextRendererFieldProps {
readonly source: string | null
source: string | null
}

export interface RichTextRendererBlockProps<
CustomElements extends RichTextElement = never,
CustomLeaves extends RichTextLeaf = never,
> {
readonly blocks: RichTextBlock[]
readonly referenceRenderers?: Record<string, ReferenceRenderer<any, CustomElements, CustomLeaves>>
readonly sourceField?: string
readonly referencesField?: string
readonly referenceDiscriminationField?: string
blocks: readonly RichTextBlock[]
referenceRenderers?: Record<string, ReferenceRenderer<any, CustomElements, CustomLeaves>>
sourceField?: string
referencesField?: string
referenceDiscriminationField?: string
}

export type RichTextRendererProps<
Expand Down

0 comments on commit 94fdb82

Please sign in to comment.