npm.io
0.0.33 • Published 2 years ago

@types/ngbootbox

Licence
MIT
Version
0.0.33
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/ngbootbox

Summary

This package contains type definitions for ngbootbox (https://github.com/eriktufvesson/ngBootbox).

Details

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

index.d.ts

/// <reference types="bootbox" />

interface NgBootboxDialog {
    title?: string | undefined;
    message?: string | undefined;
    templateUrl?: string | undefined;
    locale?: string | undefined;
    callback?: (() => any) | undefined;
    onEscape?: (() => any | boolean) | undefined;
    show?: boolean | undefined;
    backdrop?: boolean | undefined;
    closeButton?: boolean | undefined;
    animate?: boolean | undefined;
    className?: string | undefined;
    size?: string | undefined;
    buttons?: BootboxButtonMap | undefined;
}

interface BootboxService {
    alert(msg: string): Promise<any>;
    confirm(msg: string): Promise<any>;
    prompt(msg: string): Promise<any>;
    customDialog(options: NgBootboxDialog): void;
    setDefaults(options: BootboxDefaultOptions): void;
    hideAll(): void;

    addLocale(name: string, values: BootboxLocaleValues): void;
    removeLocale(name: string): void;
    setLocale(name: string): void;
}

declare var $ngBootbox: BootboxService;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/bootbox

Credits

These definitions were written by Sam Saint-Pettersen.