こんにちは私は、typescript xmlページでImage要素を取得しようとしていて、プログラムでimageSourceプロパティを設定しています。私はそれがこのように行われていることがわかりました例でNativescript Typescriptエラープロパティが存在しません
:typescriptですを使用しているとき、私が午前
image = page.getViewById("id");
image.imageSource = newImageSource;
問題は、私が回避する方法がわからない
error 'imageSource' does not exist on type 'View'
ですその問題。何か案は?
https://basarat.gitbooks.io/typescript/content/docs/types/type-assertion.html –