-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.d.ts
22 lines (21 loc) · 1.41 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { KafkaConfig } from 'kafkajs'
import { GlobalConfig } from 'node-rdkafka';
import { ConnectionOptions } from 'pg-connection-string';
import { RedisClientOptions } from 'redis';
import { RedisOptions } from 'ioredis';
import { MongoClientOptions } from 'mongodb';
import { ConnectOptions as mongooseConnectionOptions } from 'mongoose';
import { ConnectionOptions as rheaConnectionOptions} from 'rhea';
import { ConnectionOptions as mysql2ConnectionOptions} from 'mysql2';
import { ConnectionParameters } from 'odbc';
export function getBinding(service: 'KAFKA', client: 'node-rdkafka'): GlobalConfig;
export function getBinding(service: 'KAFKA', client: 'kafkajs'): KafkaConfig;
export function getBinding(service: 'POSTGRESQL', client: 'pg'): ConnectionOptions;
export function getBinding(service: 'POSTGRESQL', client: 'odbc'): String;
export function getBinding(service: 'REDIS', client: 'redis'): RedisClientOptions;
export function getBinding(service: 'REDIS', client: 'ioredis'): RedisOptions;
export function getBinding(service: 'MONGODB', client: 'mongodb'): MongoClientOptions;
export function getBinding(service: 'MONGODB', client: 'mongoose'): mongooseConnectionOptions;
export function getBinding(service: 'AMQP', client: 'rhea'): rheaConnectionOptions;
export function getBinding(service: 'MYSQL', client: 'mysql2'): mysql2ConnectionOptions;
export function getBinding(service: 'MYSQL', client: 'odbc'): ConnectionParameters;