0

I'm creating Cordova app with TypeScript.

Does anyone know how to use sqlcipher in TypeScript?

I found this very useful extension but I want to use it in TypeScript. Is it possible? or Any other good solutions?

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

1
  • Too late to ask, but did you find a solution or tutorial? The below solution does not work for me. I am trying to use this in ionic 5. Commented Oct 29, 2020 at 14:41

1 Answer 1

1

Does anyone know how to use sqlcipher in TypeScript

Your JavaScript is TypeScript. The library : https://github.com/litehelpers/Cordova-sqlcipher-adapter exposes a varaible sqlitePlugin. You can use it with TypeScript very easily:

declare var sqlitePlugin:any;

And you will be in no way more worse off than just JavaScript.

More

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.