Expose the index parameter in the Fragment descendants callback #77

Merged
whawker merged 1 commit from master into master 2023-03-21 13:20:53 +01:00
whawker commented 2023-03-21 11:06:50 +01:00 (Migrated from github.com)

TypeScript is not aware of of the index parameter on the callback function for Fragments.descendants.

I have updated the type notation to include this, which also aligns it with the callback function for Node.descendants

TypeScript is not aware of of the `index` parameter on the callback function for `Fragments.descendants`. I have updated the type notation to include this, which also aligns it with the callback function for _Node_`.descendants`
marijnh commented 2023-03-21 13:21:00 +01:00 (Migrated from github.com)

Thanks for spotting that.

Thanks for spotting that.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-model!77
No description provided.