[英]is it possible to use typescript and javscript together in a nativescript project
i would like to know if i can use javascript and typescript in one project and how.我想知道我是否可以在一个项目中使用 javascript 和 typescript 以及如何使用。 i have an existing nativescript core js project, i want to use a plugin, the demo is written in TS, and its a webrtc plugin so i don't understand it enough to start messing with the code
我有一个现有的 nativescript 核心 js 项目,我想使用一个插件,该演示是用 TS 编写的,它是一个webrtc 插件,所以我对它的理解不够到开始弄乱代码
i have tried running tns install typescript
before but it messed up my project.我之前尝试过运行
tns install typescript
但它搞砸了我的项目。
Consider to migrate your code to TypeScript, compile the plugin and add it manually or search an alternative for that plugin in JavaScript.考虑将您的代码迁移到 TypeScript,编译插件并手动添加它或在 JavaScript 中搜索该插件的替代品。
PD: Check this related issue in the nativescript-webrtc
GitHub repository PD:在
nativescript-webrtc
GitHub 存储库中检查此相关问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.