github udecode/plate @platejs/link@49.0.15

latest releases: @platejs/dnd@49.2.22, @platejs/core@49.2.21, @platejs/slate@49.2.21...
2 months ago

Patch Changes

  • #4428 by @zbeyens

    • Improved return type of getLinkAttributes to be more specific and type-safe.
    // The function now returns a properly typed object
    const attributes = getLinkAttributes(editor, linkElement);
    // attributes is now properly typed as Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target'> & UnknownObject

Don't miss a new plate release

NewReleases is sending notifications on new releases.