jquery - The property 'unobtrusive' does not exist on value of type 'Validator' -



jquery - The property 'unobtrusive' does not exist on value of type 'Validator' -

i ugly error using typescript jquery validation. property 'unobtrusive' not exist on value of type 'validator' have jquery typescript d.ts file , jquery validation d.ts file. there d.ts file need?

thanks

the jquery validation library doesn't have property named unobtrusive. couldn't find 1 in documentation , there isn't 1 in definition file:

https://github.com/borisyankov/definitelytyped/blob/master/jquery.validation/jquery.validation.d.ts

therefore think using other plugin or library... either need find type definition or write one.

for example, if utilize this:

$.unobtrusive('...').text('hello world);

you extend jquery interface so:

interface jquerystatic { unobtrusive(ar: string): jquery; }

jquery validation typescript

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -