0.0.41 • Published 2 years ago

@types/easy-xapi v0.0.41

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/easy-xapi

Summary

This package contains type definitions for easy-xapi (https://github.com/DeadAlready/easy-xapi).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/easy-xapi.

index.d.ts

// Type definitions for easy-xapi
// Project: https://github.com/DeadAlready/easy-xapi
// Definitions by: Karl Düüna <https://github.com/DeadAlready>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="easy-jsend" />
/// <reference types="bunyan" />
/// <reference types="express" />
/// <reference types="node" />

declare namespace Express {
    export interface Request {
        log: any;
    }
}

declare module "easy-xapi" {
    import express = require('express');
    import http = require('http');
    import Logger = require('bunyan');

    interface InitConfig {
        jSend?: {partial: boolean} | undefined;
    }

    interface Config {
        root: string;
        port: number;
        name: string;
        xHeaderDefaults?: Object | undefined;
        log: {
            name: string;
            level: string
        }
        mount: (app: express.Application) => void
    }

    interface Result {
        express: any;
        app: express.Application;
        server: http.Server;
        log: Logger;
        listen: () => void;
    }

    export function init(conf: InitConfig): void;
    export function create(conf: Config): Result;
}

Additional Details

Credits

These definitions were written by Karl Düüna.

0.0.40

2 years ago

0.0.41

2 years ago

0.0.39

2 years ago

0.0.38

4 years ago

0.0.37

6 years ago

0.0.36

8 years ago

0.0.35

8 years ago

0.0.34

8 years ago

0.0.33

8 years ago

0.0.32

9 years ago

0.0.31

9 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28-alpha

9 years ago

0.0.27-alpha

9 years ago

0.0.26-alpha

9 years ago

0.0.25-alpha

9 years ago

0.0.24-alpha

9 years ago

0.0.23-alpha

9 years ago

0.0.22-alpha

9 years ago

0.0.21-alpha

9 years ago

0.0.16-alpha

9 years ago

0.0.15-alpha

9 years ago