Iterator
Allows the instance to be used as an iterator
a key (field name) of the parent
[Symbol.iterator]
Clean
Goes through each of the values in the Object, cleans it, stores it, and returns a new Object
Optional
value: null | Record<any, any>The value to clean
Optional
level: string[]the cleaned object values
clean
public
Requires
Sets or gets the require rules used to validate the Parent
Optional
require: Record<string, string | string[]>An Object expressing requirements of fields
The object of requirements for get, or void for set
requires
public
Special
Getter/Setter method for special values associated with nodes that are not fields. To retrieve a value or values, pass only the name or names, to set a single special value, pass a name and value
The name of the value to either set or get
Optional
value: anyThe value to set, must be something that can be converted directly to JSON
mixed | void
special
public
Static
createStatic
registerRegister
Registers the classes that can be children because we can't require them in this file as webpack can't handle file A that requires file B that requires file A
Name / value object of all classes to register, or the name of the constructor that will be added
Optional
constructor: anyThe class to associate with the given name
register
public
Tree
Represents a named Parent
Name
Tree
Access
public