Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/jquery-validation-unobtrusive

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jquery-validation-unobtrusive

TypeScript definitions for Microsoft jQuery Unobtrusive Validation

  • 3.2.33
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-44.09%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/jquery-validation-unobtrusive

Summary

This package contains type definitions for Microsoft jQuery Unobtrusive Validation (https://github.com/aspnet/jquery-validation-unobtrusive).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-validation-unobtrusive.

index.d.ts

// Type definitions for Microsoft jQuery Unobtrusive Validation v3.2.3
// Project: https://github.com/aspnet/jquery-validation-unobtrusive
// Definitions by: Matt Brooks <https://github.com/EnableSoftware>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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

declare namespace MicrosoftJQueryUnobtrusiveValidation {
    type JQuerySelector = string | Document | Element | JQuery;

    interface Adapter {
        name: string;
        params: string[];
        adapt: Function;
    }

    interface Adapters extends Array<Adapter> {
        add(adapterName: string, fn: Function): Adapters;
        add(adapterName: string, params: string[], fn: Function): Adapters;
        addMinMax(
            adapterName: string,
            minRuleName: string,
            maxRuleName: string,
            minMaxRuleName: string,
            minAttribute?: string,
            maxAttribute?: string,
        ): Adapters;
        addSingleVal(adapterName: string, ruleName: string): Adapters;
        addSingleVal(adapterName: string, attribute: string, ruleName: string): Adapters;
        addBool(adapterName: string, ruleName?: string): Adapters;
        addMethod(adapterName: string, fn: (value: string, element: Element, params: any) => any): Adapters;
    }

    interface Validator {
        adapters: Adapters;
        parseElement(element: JQuerySelector, skipAttach?: boolean): void;
        parse(selector: JQuerySelector): void;
    }
}

declare namespace JQueryValidation {
    interface ValidatorStatic {
        unobtrusive: MicrosoftJQueryUnobtrusiveValidation.Validator;
    }
}

Additional Details

  • Last updated: Fri, 15 Sep 2023 20:36:37 GMT
  • Dependencies: @types/jquery.validation
  • Global values: none

Credits

These definitions were written by Matt Brooks.

FAQs

Package last updated on 15 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc