1.0.4 • Published 2 years ago

@types/kube-probe v1.0.4

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

Installation

npm install --save @types/kube-probe

Summary

This package contains type definitions for kube-probe (https://github.com/nodeshift/kube-probe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/kube-probe.

index.d.ts

// Type definitions for kube-probe 1.0
// Project: https://github.com/nodeshift/kube-probe
// Definitions by: Ash McBride <https://github.com/emacsified>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Express } from 'express';
import { ProtectionConfig } from 'overload-protection';

interface Options {
    readinessUrl?: string | undefined;
    livenessUrl?: string | undefined;
    readinessCallback?: (() => void) | undefined;
    livenessCallback?: (() => void) | undefined;
    bypassProtection?: boolean | undefined;
    protectionConfig?: ProtectionConfig | undefined;
}
declare function probe(app: Express, options?: Options): void;

export = probe;

Additional Details

Credits

These definitions were written by Ash McBride.