不要怂,就是干,撸起袖子干!

Commit 504034cc by Erik Seliger Committed by Sushant

fix(types): replication options (#10741)

1 parent 850c7fd0
Showing with 9 additions and 13 deletions
......@@ -86,25 +86,21 @@ export interface PoolOptions {
validate?(client?: unknown): boolean;
}
/**
* Interface for replication Options in the sequelize constructor
*/
export interface ReplicationOptions {
read?: {
export interface ConnectionOptions {
host?: string;
port?: string | number;
username?: string;
password?: string;
database?: string;
};
}
write?: {
host?: string;
port?: string | number;
username?: string;
password?: string;
database?: string;
};
/**
* Interface for replication Options in the sequelize constructor
*/
export interface ReplicationOptions {
read: ConnectionOptions[];
write: ConnectionOptions;
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!