Skip to main content

IModelAction

Model Actions are translation functions between Diff and underlying resources. These actions can translate a specific type of Diff into individual resources.

Index

Properties

readonlyACTION_NAME

ACTION_NAME: string

The name of the action. It can be used to easily identify an action and its purpose.

Methods

collectInput

  • collectInput(diff: Diff): string[]
  • This function contains the list of inputs to ask before processing the diff. A missing input key will not be populated in the inputs provided to the action.


    Parameters

    Returns string[]

filter

  • filter(diff: Diff): boolean
  • This function determines if the handle is applicable to the diff.


    Parameters

    Returns boolean

handle