diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index d20bd83b86..b6d1da1e55 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -5320,7 +5320,7 @@ declare namespace sequelize { username?: string; password?: string; database?: string; - }; + }[]; write?: { host?: string; diff --git a/types/sequelize/sequelize-tests.ts b/types/sequelize/sequelize-tests.ts index 6c4f6c0a6f..1572b91c00 100644 --- a/types/sequelize/sequelize-tests.ts +++ b/types/sequelize/sequelize-tests.ts @@ -1243,11 +1243,11 @@ new Sequelize( 'wat', 'trololo', 'wow', { port : 99999 } ); new Sequelize( 'localhost', 'wtf', 'lol', { port : 99999 } ); new Sequelize( 'sequelize', null, null, { replication : { - read : { + read : [{ host : 'localhost', username : 'omg', password : 'lol' - } + }] } } ); new Sequelize( { diff --git a/types/sequelize/v3/index.d.ts b/types/sequelize/v3/index.d.ts index 9453a8473d..eafa70b641 100644 --- a/types/sequelize/v3/index.d.ts +++ b/types/sequelize/v3/index.d.ts @@ -5067,7 +5067,7 @@ declare namespace sequelize { username?: string; password?: string; database?: string; - }; + }[]; write?: { host?: string; diff --git a/types/sequelize/v3/sequelize-tests.ts b/types/sequelize/v3/sequelize-tests.ts index b575271867..ccc0a66c96 100644 --- a/types/sequelize/v3/sequelize-tests.ts +++ b/types/sequelize/v3/sequelize-tests.ts @@ -1165,11 +1165,11 @@ new Sequelize( 'wat', 'trololo', 'wow', { port : 99999 } ); new Sequelize( 'localhost', 'wtf', 'lol', { port : 99999 } ); new Sequelize( 'sequelize', null, null, { replication : { - read : { + read : [{ host : 'localhost', username : 'omg', password : 'lol' - } + }] } } ); new Sequelize( {