npm.io
2.2.8 • Published 2 years ago

@types/kraken-js

Licence
MIT
Version
2.2.8
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/kraken-js

Summary

This package contains type definitions for kraken-js (http://krakenjs.com).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/kraken-js.

index.d.ts

import { Express } from "express";

declare function k(options?: k.Options | string): Express;

declare namespace k {
    interface Kraken extends Express {
        kraken: Kraken;
    }

    interface Options {
        protocols?: object | undefined;
        basedir?: string | undefined;
        configdir?: string | undefined;
        mountpath?: string | undefined;
        inheritViews?: boolean | undefined;
        startupHeaders?: { [key: string]: string } | undefined;
        onconfig?(config: Map<string, any>, next: (err: Error | null, config?: object) => any): any;
        uncaughtException?(err: Error): any;
    }
}

export = k;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0938 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Timur Manyanov, and Satana Charuwichitratana.