Skip to content

docs: update typescript types to be more convenient to use#2536

Open
nperez0111 wants to merge 2 commits intomainfrom
convenience-types
Open

docs: update typescript types to be more convenient to use#2536
nperez0111 wants to merge 2 commits intomainfrom
convenience-types

Conversation

@nperez0111
Copy link
Contributor

@nperez0111 nperez0111 commented Mar 4, 2026

Summary

Rationale

Instead of:

ReactCustomBlockRenderProps<
      ReturnType<typeof createAudioBlockConfig>["type"],
      ReturnType<typeof createAudioBlockConfig>["propSchema"],
      ReturnType<typeof createAudioBlockConfig>["content"]
    >

We can do:

ReactCustomBlockRenderProps<typeof createAudioBlockConfig>

It also now accepts either a function which returns a blockconfig, or a blockconfig directly

Changes

Impact

Testing

Screenshots/Video

Checklist

  • Code follows the project's coding standards.
  • Unit tests covering the new feature have been added.
  • All existing tests pass.
  • The documentation has been updated to reflect the new feature

Additional Notes

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blocknote Ready Ready Preview Mar 4, 2026 3:16pm
blocknote-website Ready Ready Preview Mar 4, 2026 3:16pm

Request Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 4, 2026

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/@blocknote/ariakit@2536

@blocknote/code-block

npm i https://pkg.pr.new/@blocknote/code-block@2536

@blocknote/core

npm i https://pkg.pr.new/@blocknote/core@2536

@blocknote/mantine

npm i https://pkg.pr.new/@blocknote/mantine@2536

@blocknote/react

npm i https://pkg.pr.new/@blocknote/react@2536

@blocknote/server-util

npm i https://pkg.pr.new/@blocknote/server-util@2536

@blocknote/shadcn

npm i https://pkg.pr.new/@blocknote/shadcn@2536

@blocknote/xl-ai

npm i https://pkg.pr.new/@blocknote/xl-ai@2536

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/@blocknote/xl-docx-exporter@2536

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/@blocknote/xl-email-exporter@2536

@blocknote/xl-multi-column

npm i https://pkg.pr.new/@blocknote/xl-multi-column@2536

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/@blocknote/xl-odt-exporter@2536

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/@blocknote/xl-pdf-exporter@2536

commit: 64c14fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant