chore: introduce resolved config (#425)
This commit is contained in:
parent
746c9fc124
commit
fea50e6840
8 changed files with 69 additions and 41 deletions
|
|
@ -15,9 +15,11 @@
|
|||
*/
|
||||
|
||||
import { Connection, createConnection as createConnectionImpl } from './connection.js';
|
||||
import { resolveConfig } from './config.js';
|
||||
|
||||
import type { Config } from '../config.js';
|
||||
|
||||
export async function createConnection(config: Config = {}): Promise<Connection> {
|
||||
export async function createConnection(userConfig: Config = {}): Promise<Connection> {
|
||||
const config = await resolveConfig(userConfig);
|
||||
return createConnectionImpl(config);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue