interface ComponentContextOptions {
    migrateInputs?: ((inputs: any, version: null | string) => {
        [key: string]: any;
    });
}

Properties

Properties

migrateInputs?: ((inputs: any, version: null | string) => {
    [key: string]: any;
})

Migrate the inputs from an earlier version to the current version of the component.

Type declaration

    • (inputs, version): {
          [key: string]: any;
      }
    • Parameters

      • inputs: any

        the inputs of this component for an earlier version of the component

      • version: null | string

        the version of the component for which the inputs were for, or null if the version is unknown

      Returns {
          [key: string]: any;
      }

      the inputs for the current version of the component

      • [key: string]: any