@types/jquery.are-you-sure
TypeScript icon, indicating that this package has built-in type declarations

0.0.34 • Public • Published

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 03:09:37 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Jon Egerton.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jquery.are-you-sure

Weekly Downloads

1,520

Version

0.0.34

License

MIT

Unpacked Size

4.28 kB

Total Files

5

Last publish

Collaborators

  • types