project.object.shape
3 functions / 0 types
Index
| Function | Description |
|---|---|
| get | Get the ProjectShapeSchema of the given ProjectNodeSchema if one exists |
| remove | Remove the ProjectShapeSchema of the given ProjectNodeSchema if one exists |
| set | Add a ProjectShapeSchema to the given ProjectNodeSchema |
get
get(args: { node: ProjectObjectProjectNode }, transactionId?: string): Promise<ProjectObjectProjectShape | undefined>Get the ProjectShapeSchema of the given ProjectNodeSchema if one exists
Returns Promise<ProjectObjectProjectShape | undefined>.
node : ProjectObjectProjectNode
ProjectNodeSchema to get the ProjectShapeSchema of
transactionId optional : string
remove
remove(args: { node: ProjectObjectProjectNode }, transactionId?: string): Promise<ProjectObjectProjectShape | undefined>Remove the ProjectShapeSchema of the given ProjectNodeSchema if one exists
Returns the old ProjectShapeSchema if available
Returns Promise<ProjectObjectProjectShape | undefined>.
node : ProjectObjectProjectNode
ProjectNodeSchema to remove the ProjectShapeSchema of
transactionId optional : string
set
set(args: { node: ProjectObjectProjectNode; shape: ProjectObjectProjectShape }, transactionId?: string): Promise<void>Add a ProjectShapeSchema to the given ProjectNodeSchema
Returns Promise<void>.
node : ProjectObjectProjectNode
ProjectNodeSchema to change the ProjectShapeSchema of
shape : ProjectObjectProjectShape
The new ProjectShapeSchema
transactionId optional : string