DefinitelyTyped/types/muri/index.d.ts
Jarom Loveridge 9840f8c2e4 Add types for muri (#25039)
* Add muri types.

* Resolve linting issues.

* Remove unnecessary TypeScript version specification.
2018-04-16 15:35:32 -07:00

32 lines
660 B
TypeScript

// Type definitions for muri 1.3
// Project: https://github.com/aheckmann/muri
// Definitions by: jloveridge <https://github.com/jloveridge>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = Muri;
declare function Muri(uri: string): Muri.ParsedUri;
declare namespace Muri {
interface ParsedUri {
db: string;
hosts: Host[];
options: any;
auth?: {
user: string;
pass?: string;
};
}
interface DefaultHost {
host: string;
port: number;
}
interface SocketHost {
ipc: string;
}
type Host = DefaultHost | SocketHost;
}