1.3.3 • Published 6 months ago

@types/muri v1.3.3

Weekly downloads
915
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/muri

Summary

This package contains type definitions for muri (https://github.com/aheckmann/muri).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/muri.

index.d.ts

// 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 | undefined;
        } | undefined;
    }

    interface DefaultHost {
        host: string;
        port: number;
    }

    interface SocketHost {
        ipc: string;
    }

    type Host = DefaultHost | SocketHost;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 18:51:06 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by jloveridge.

1.3.3

6 months ago

1.3.2

7 months ago

1.3.1

3 years ago

1.3.0

6 years ago