From ab35f4f497b9883f17356dbeb3e4f55143f2f8f9 Mon Sep 17 00:00:00 2001 From: Antoine Cormouls Date: Sun, 3 Apr 2022 19:38:15 +0200 Subject: [PATCH] fix: add back simple definition for internal typing --- src/SchemaMigrations/Migrations.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SchemaMigrations/Migrations.js b/src/SchemaMigrations/Migrations.js index b9fe354c4e..8768911189 100644 --- a/src/SchemaMigrations/Migrations.js +++ b/src/SchemaMigrations/Migrations.js @@ -1,5 +1,15 @@ // @flow +export interface SchemaOptions { + definitions: JSONSchema[]; + strict: ?boolean; + deleteExtraFields: ?boolean; + recreateModifiedFields: ?boolean; + lockSchemas: ?boolean; + beforeMigration: ?() => void | Promise; + afterMigration: ?() => void | Promise; +} + export type FieldValueType = | 'String' | 'Boolean'