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 09:09:39 GMT
- Dependencies: @types/bootbox
Credits
These definitions were written by Sam Saint-Pettersen.