Installation
npm install --save @types/micromodal
Summary
This package contains type definitions for micromodal (https://github.com/ghosh/micromodal#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/micromodal.
export interface MicroModalConfig {
onShow?: ((modal?: HTMLElement) => void) | undefined;
onClose?: ((modal?: HTMLElement) => void) | undefined;
openTrigger?: string | undefined;
closeTrigger?: string | undefined;
openClass?: string | undefined;
disableScroll?: boolean | undefined;
disableFocus?: boolean | undefined;
awaitOpenAnimation?: boolean | undefined;
awaitCloseAnimation?: boolean | undefined;
debugMode?: boolean | undefined;
}
declare namespace MicroModal {
function init(config?: MicroModalConfig): void;
function show(targetModal: string, config?: MicroModalConfig): void;
function close(targetModal?: string): void;
}
export default MicroModal;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Wayne Carson.