From c1e791bad0b079af67398f6407221e6dcbb573dd Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 25 Jul 2018 22:01:25 +0200 Subject: expliciting type checks and predicates (server only) --- server/models/migrations/index.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 server/models/migrations/index.ts (limited to 'server/models/migrations') diff --git a/server/models/migrations/index.ts b/server/models/migrations/index.ts new file mode 100644 index 000000000..c2b31b05e --- /dev/null +++ b/server/models/migrations/index.ts @@ -0,0 +1,23 @@ +import * as Sequelize from 'sequelize' + +declare namespace Migration { + interface Boolean extends Sequelize.DefineAttributeColumnOptions { + defaultValue: boolean | null + } + + interface String extends Sequelize.DefineAttributeColumnOptions { + defaultValue: string | null + } + + interface Integer extends Sequelize.DefineAttributeColumnOptions { + defaultValue: number | null + } + + interface BigInteger extends Sequelize.DefineAttributeColumnOptions { + defaultValue: Sequelize.DataTypeBigInt | number | null + } +} + +export { + Migration +} -- cgit v1.2.3