简体   繁体   中英

error "Property 'datepicker' does not exist on type 'IAugmentedJQuery' With Typescript

I am using angular JS with Typesscript . But getting error " Property 'datepicker' does not exist on type 'IAugmentedJQuery'. " . Please advice how to resolve this error ?

 angular.element('input#delegate-from-date').datepicker({

thanks in advance !!

You can create a datepicker.d.ts file in your project with the following contents:

interface IAugmentedJQuery {
    datepicker:any;
}

More

Some tips on migrating :

https://basarat.gitbooks.io/typescript/content/docs/types/migrating.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM