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

Properties

Properties

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

Type declaration

    • (inputs, version): {
          [key: string]: any;
      }
    • Migrate the inputs from an earlier version to the current version of the component.

      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