Skip to content

@eightkk/vue-weave / core / proposeResourceAssignment

Function: proposeResourceAssignment() ​

proposeResourceAssignment(state, request): ResourceAssignmentProposal

Defined in: src/core/resourceTimeline.ts:372

Check an assignment change and return the new assignment list. Adding or replacing onto a resource the task already has is rejected with already-assigned; removing or replacing a missing assignment with not-assigned. Throws an Error for duplicate assignments in the state or an unknown task or resource, and a RangeError for units that are not a positive integer. Removing an assignment does not remove the task. The state is not modified.

Parameters ​

state ​

ResourceAssignmentState

request ​

ResourceAssignmentRequest

Returns ​

ResourceAssignmentProposal

Released under the MIT License.