Function ctxDispatchToMultiEnumProps

  • Parameters

    • dispatch: Dispatch<unknown>

    Returns {
        addItem: ((path, value) => void);
        removeItem?: ((path, toDelete) => void);
        handleChange(path, value): void;
    }

    • addItem: ((path, value) => void)
        • (path, value): void
        • Parameters

          • path: string
          • value: any

          Returns void

    • Optional removeItem?: ((path, toDelete) => void)
        • (path, toDelete): void
        • Parameters

          • path: string
          • toDelete: any

          Returns void

    • handleChange:function
      • Update handler that emits a data change

        Parameters

        • path: string

          the path to the data to be updated

        • value: any

          the new value that should be written to the given path

        Returns void

Generated using TypeDoc