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
Post a Comment