在 TypeScript 中使用 sqlcipher

Using sqlcipher in TypeScript

我正在使用 TypeScript 创建 Cordova 应用程序。

有人知道如何在 TypeScript 中使用 sqlcipher 吗?

我发现这个扩展非常有用,但我想在 TypeScript 中使用它。 可能吗?或者还有其他好的解决方案吗?

https://github.com/litehelpers/Cordova-sqlcipher-adapter

Does anyone know how to use sqlcipher in TypeScript

你的 JavaScript 是 TypeScript。库:https://github.com/litehelpers/Cordova-sqlcipher-adapter 公开了一个变量 sqlitePlugin。您可以非常轻松地将它与 TypeScript 一起使用:

declare var sqlitePlugin:any;

而且你的处境绝不会比 JavaScript 更糟。

更多

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