preSchemaImportCallback

preSchemaImportCallback: (context: PreImportContext<any>) => Promise<PreImportCallbackResult<T>> | undefined

Will be executed before schemas are imported but after channel upgrades. Use this to make any pre import changes to the iModel or use it to cache data or create snapshots for data transformation after the schema import/upgrade.

@note User is responsible to acquiring the necessary locks before making any changes.

Defined in

Last Updated: 23 January, 2026