diff --git a/README.md b/README.md index e266ffd..cc7ba13 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ # DynamoDB Goodies -> A zero-config reverse proxy for local development with SSL support, custom domains, and more. - ## Features - Zero-config DynamoDB setup diff --git a/src/dynamodb.ts b/src/dynamodb.ts index d167801..15d2b21 100644 --- a/src/dynamodb.ts +++ b/src/dynamodb.ts @@ -17,8 +17,17 @@ const JARNAME = 'DynamoDBLocal.jar' const runningProcesses: { [port: number]: ChildProcess } = {} +interface LaunchOptions { + port: number + dbPath?: string + additionalArgs?: string[] + verbose?: boolean + detached?: boolean + javaOpts?: string +} + export const dynamoDb = { - async launch(port: number, dbPath?: string, additionalArgs: string[] = [], verbose = false, detached?: boolean, javaOpts = ''): Promise { + async launch({ port, dbPath, additionalArgs = [], verbose = false, detached, javaOpts = '' }: LaunchOptions): Promise { if (runningProcesses[port]) return Promise.resolve(runningProcesses[port])