diff --git a/index.d.ts b/index.d.ts index 41664da..a100f73 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,20 +1,12 @@ import { ChildProcess } from 'child_process'; -declare module 'dynamodb-local' { - type argValues = '-cors' | '-dbPath' | '-delayTransientStatuses' | '-help' | '-inMemory' | '-optimizeDbBeforeStartup' | '-port' | '-sharedDb'; +type argValues = '-cors' | '-dbPath' | '-delayTransientStatuses' | '-help' | '-inMemory' | '-optimizeDbBeforeStartup' | '-port' | '-sharedDb'; - export interface InstallerConfig { - installPath: string; - downloadUrl: string; - } - - namespace DynamoDbLocal {} - - export class DynamoDbLocal { - static configureInstaller(config: InstallerConfig): void; - static launch(portNumber: number, dbPath: string | null, args: argValues[], verbose?: boolean): Promise; - static stop(portNumber: number): void; - } - - export = DynamoDbLocal; +export interface InstallerConfig { + installPath: string; + downloadUrl: string; } + +export function configureInstaller(config: InstallerConfig): void; +export function launch(portNumber: number, dbPath?: string | null, args?: argValues[], verbose?: boolean): Promise; +export function stop(portNumber: number): void;