Closed amyworrall closed 1 year ago
Instead of having type
as a mutable variable, we now have a getType()
class function that nodes must override.
The previous API was a poor choice from the early days of Lexical iOS, and the new API makes it a lot more clear how node subclasses should declare their node type.
@amyworrall has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@amyworrall merged this pull request in facebook/lexical-ios@399d547becfdec44c4ce80101e152a8c815e0032.
New node type API Summary:
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags: