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

Commit 504034cc by Erik Seliger Committed by Sushant

fix(types): replication options (#10741)

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