tree: Import / Export APIs and demo#22566
Conversation
Co-authored-by: Joshua Smithrud <54606601+Josmithr@users.noreply.github.com>
…to independentView
| const args = process.argv.slice(2); | ||
|
|
||
| console.log(`Requires arguments: [<source>] [<destination>] [<edit>]`); | ||
| console.log(`Example arguments: default data/large.concise.json string:10,item:100`); |
There was a problem hiding this comment.
the example for edit is a bit confusing to me, maybe expand on its expected format or how this particular example affects the document?
There was a problem hiding this comment.
should be better now.
| }, | ||
| ...options, | ||
| }; | ||
| const schemalessConfig = applySchemaToParserOptions(schema, config); |
There was a problem hiding this comment.
why is this considered schemaless?
There was a problem hiding this comment.
comment added.
| @@ -0,0 +1 @@ | |||
| {"type":"com.fluidframework.example.cli.List","fields":[]} No newline at end of file | |||
There was a problem hiding this comment.
is the verbose version supposed to not have any fields?
There was a problem hiding this comment.
the default tree does not have any children under this node, so yes. I have however changed the default tree to be a bit bigger so its a better example.
| ): TreeView<TRoot>; | ||
|
|
||
| // TODO: | ||
| // Add stored key versions of Tree.exportVerbose, Tree.exportConcise and Tree.exportCompressed here so tree content can be accessed without a view schema. |
There was a problem hiding this comment.
link here for context would be good I think
There was a problem hiding this comment.
I have moved these comments to the interface doc comment so they can use the link syntax. They are in privateRemarks though, so I don't think there is any way to click them, and they don't render as links in intelisense.
Co-authored-by: Jenn <jennle@microsoft.com>
noencke
left a comment
There was a problem hiding this comment.
Approved for API - alpha only
|
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output |
## Description Added import/export options for tree content and schema, and example script using them.
## Description Added import/export options for tree content and schema, and example script using them.
Description
Added import/export options for tree content and schema, and example script using them.
Reviewer Guidance
The review process is outlined on this wiki page.