@webdocgroup/realm-migrations
Version:
Realm DB migration service for React Native
14 lines • 556 B
TypeScript
type Props = {
currentVersion: number;
latestMigrationVersion: number;
};
export type ShouldRunMigrationsHook = (props: Props, next: (props: Props) => boolean) => boolean;
export type ShouldRunMigrationsHooks = ShouldRunMigrationsHook[];
export type ShouldRunMigrationsHookConfig = {
props: Props;
hooks: ShouldRunMigrationsHooks;
callback: (props: Props) => boolean;
};
export declare const shouldRunMigrationsHook: ({ callback, hooks, props, }: ShouldRunMigrationsHookConfig) => boolean;
export {};
//# sourceMappingURL=index.d.ts.map