简体   繁体   English

错误“类型为'IAugmentedJQuery'的Typescript不存在属性'datepicker'

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

I am using angular JS with Typesscript . 我在Typesscript中使用angular JS。 But getting error " Property 'datepicker' does not exist on type 'IAugmentedJQuery'. " . 但是出现错误“ 类型'IAugmentedJQuery'中不存在属性'datepicker'。 ”。 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: 您可以在项目中使用以下内容创建datepicker.d.ts文件:

interface IAugmentedJQuery {
    datepicker:any;
}

More 更多

Some tips on migrating : 有关迁移的一些技巧:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 打字稿类型错误属性不存在 - Typescript type error property does not exist 类型{}不存在Typescript属性 - Typescript property does not exist on type {} 类型 [] 打字稿上不存在属性 - property does not exist on type [] typescript 属性在类型上不存在-TypeScript - Property does not exist on type - TypeScript Typescript 错误“类型‘HTMLElement’上不存在属性‘值’”、“‘元素’类型上不存在属性‘onclick’” - Typescript error "Property 'value' does not exist on type 'HTMLElement'", "Property 'onclick' does not exist on type 'Element'" 打字稿错误:类型{…}上不存在属性'log'-Console.log() - typescript error: Property 'log' does not exist on type {…} - Console.log() 打字稿错误:“Window”类型上不存在“_myApiUrl”属性 - Typescript error: Property '_myApiUrl' does not exist on type 'Window' 解决打字稿错误的最佳方法 - 类型上不存在属性 - Best way to solve typescript error - property does not exist on type 打字稿错误:'HTMLElement'类型中不存在属性'append' - Typescript Error: Property 'append' does not exist on type 'HTMLElement' msal typescript 错误属性 'accessToken' 不存在于类型 'void | 令牌响应' - msal typescript error Property 'accessToken' does not exist on type 'void | TokenResponse'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM