Options
All
  • Public
  • Public/Protected
  • All
Menu

A mutator is a pair of functions. The setter mutator changes the value before storing it and the getter changes the value before retrieving it.

For example one might wish to save an image object by storing its url. In this case the setter mutator will take an image element and return its src url while the getter mutator will return an image element with the src set as the stored url.

Hierarchy

  • IMutator

Index

Properties

Properties

getter

getter: function

Type declaration

    • (value: any): any
    • Parameters

      • value: any

      Returns any

setter

setter: function

Type declaration

    • (value: any): any
    • Parameters

      • value: any

      Returns any

Generated using TypeDoc