Make FormattedTextAsTree generic, moving special case to FormattedTextAsTreeDefault#27609
Make FormattedTextAsTree generic, moving special case to FormattedTextAsTreeDefault#27609CraigMacomber wants to merge 2 commits into
Conversation
|
Hi! Thank you for opening this PR. Want me to review it? Based on the diff (1184 lines, 13 files), I've queued these reviewers:
How this works
|
Bundle size comparisonBase commit: The PR's CI build failed — fix the build and the comment will update once the next run succeeds. |
| * A collection of text related types, schema and utilities for working with text beyond the basic {@link SchemaStatics.string}. | ||
| * @remarks | ||
| * This is a default parameterization of the generic {@link FormattedTextAsTree} with hard-coded assumptions about what kind of embedded content and what kind of formatting is supported. | ||
| * It is unlikely this meeds the needs of most users, but it can serve as an unstable example of how to use the generic {@link FormattedTextAsTree}. |
There was a problem hiding this comment.
| * It is unlikely this meeds the needs of most users, but it can serve as an unstable example of how to use the generic {@link FormattedTextAsTree}. | |
| * It is unlikely this meets the needs of most users, but it can serve as an unstable example of how to use the generic {@link FormattedTextAsTree}. |
| export interface Statics<TTree> { | ||
| /** | ||
| * Construct a {@link FormattedTextAsTree.(Tree:class)} from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. | ||
| * Construct a a node of `this` schema from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. |
There was a problem hiding this comment.
| * Construct a a node of `this` schema from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. | |
| * Construct a node of `this` schema from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. |
| * | ||
| * @see {@link FormattedTextAsTree.Statics.fromString} for construction. | ||
| * @see {@link FormattedTextAsTree.(Tree:class)} for schema. | ||
| * @see {@link FormattedTextAsTree.createSchema} for creating whose nodes implement this. |
There was a problem hiding this comment.
| * @see {@link FormattedTextAsTree.createSchema} for creating whose nodes implement this. | |
| * @see {@link FormattedTextAsTree.createSchema} for creating schemas whose nodes implement this. |
Description
Make FormattedTextAsTree generic, moving special case to FormattedTextAsTreeDefault.
Reviewer Guidance
The review process is outlined on this wiki page.