You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeBlockTreeObject=Readonly<{id: string;parent?: string;content?: string;children?: ReadonlySet<BlockTreeObject>;}>;constructor(data: TreeModel.Model<BlockTreeObject>){this.tree=newTreeModel();this.rootNode=this.tree.parse(data);this.rootNode.model.id="this should fail as model is typed read only";}
Would it be easy to add ?
thanks you!
The text was updated successfully, but these errors were encountered:
Thanks for this useful package,
One feature request,
it would be nice to have model property typed, instead it falls into
[propName: string]: any;
tree-model-js/types/index.d.ts
Line 38 in 1ac126a
Example:
Would it be easy to add ?
thanks you!
The text was updated successfully, but these errors were encountered: