-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Retsam/master
Restructure Typescript bindings
- Loading branch information
Showing
1 changed file
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |