UNPKG

@webdocgroup/realm-migrations

Version:
14 lines 556 B
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