npm.io
0.0.34 • Published 2 years ago

@types/jquery.are-you-sure

Licence
MIT
Version
0.0.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/jquery.are-you-sure

Summary

This package contains type definitions for jquery.are-you-sure (https://github.com/codedance/jquery.AreYouSure).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.are-you-sure.

index.d.ts

/// <reference types="jquery" />

/**Options available to control dirty form checking*/
interface AreYouSureOptions {
    /**Message to show when attempting to quit a dirty form without saving*/
    message?: string | undefined;

    /**Class to assign to the form when dirty*/
    dirtyClass?: string | undefined;

    /**Callback when form is found to be dirty - allows control of submit/reset buttons etc*/
    change?: Function | undefined;

    /**Jquery selector to use to find input elements*/
    fieldSelector?: string | undefined;

    /**Make Are-You-Sure "silent" by disabling the warning message*/
    silent?: boolean | undefined;
}

interface AreYouSure {
    (): JQuery;
    (options: AreYouSureOptions): JQuery;
}

interface JQuery {
    areYouSure: AreYouSure;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Jon Egerton.