Skip to content

Commit

Permalink
Merge pull request #17 from Retsam/master
Browse files Browse the repository at this point in the history
Restructure Typescript bindings
  • Loading branch information
doapp-ryanp authored Jan 31, 2018
2 parents 8921069 + fa0ce33 commit ba9856c
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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<ChildProcess>;
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<ChildProcess>;
export function stop(portNumber: number): void;

0 comments on commit ba9856c

Please sign in to comment.