@types/vex-js
    TypeScript icon, indicating that this package has built-in type declarations

    2.3.30 • Public • Published

    Installation

    npm install --save @types/vex-js

    Summary

    This package contains type definitions for Vex (https://github.com/HubSpot/vex).

    Details

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

    index.d.ts

    // Type definitions for Vex v2.3.2
    // Project: https://github.com/HubSpot/vex
    // Definitions by: Greg Cohan <https://github.com/gdcohan>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    ///<reference types="jquery" />
    
    export = vex;
    export as namespace vex;
    
    declare namespace vex {
    
      interface ICSSAttributes {
        [property: string]: string | number;
      }
    
      interface IVexOptions {
        afterClose?: (() => void) | undefined;
        afterOpen?: ((vexContent: JQuery) => void) | undefined;
        content?: string | undefined;
        showCloseButton?: boolean | undefined;
        escapeButtonCloses?: boolean | undefined;
        overlayClosesOnClick?: boolean | undefined;
        appendLocation?: HTMLElement | JQuery | string | undefined;
        className?: string | undefined;
        css?: ICSSAttributes | undefined;
        overlayClassName?: string | undefined;
        overlayCSS?: ICSSAttributes | undefined;
        contentClassName?: string | undefined;
        contentCSS?: ICSSAttributes | undefined;
        closeClassName?: string | undefined;
        closeCSS?: ICSSAttributes | undefined;
      }
    
      interface Vex {
        open(options: IVexOptions): JQuery;
        close(id?: number): boolean;
        closeAll(): boolean;
        closeByID(id: number): boolean;
        defaultOptions?: IVexOptions | undefined;
      }
    
    }
    
    declare var vex: vex.Vex;

    Additional Details

    • Last updated: Fri, 02 Jul 2021 18:05:02 GMT
    • Dependencies: @types/jquery
    • Global values: vex

    Credits

    These definitions were written by Greg Cohan.

    Keywords

    none

    Install

    npm i @types/vex-js

    DownloadsWeekly Downloads

    80

    Version

    2.3.30

    License

    MIT

    Unpacked Size

    5.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • types