@types/muri
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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

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: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by jloveridge.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/muri

Weekly Downloads

72

Version

1.3.3

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • types