storesafe / cordova-sqlite-storage

A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
Other
2.15k stars 716 forks source link

TypeScript Suppot #314

Open adrienrx opened 9 years ago

adrienrx commented 9 years ago

DId you have a typescript definition file ?

brodycj commented 9 years ago

DId you have a typescript definition file ?

No but you should be able to adapt something like this one: https://github.com/borisyankov/DefinitelyTyped/blob/master/cordova/plugins/WebSQL.d.ts

In addition, I am planning some API changes and may take another look TypeScript support afterwards.

sueess commented 8 years ago

WebSQL differs quite from the API. Is a proper Typing planned? Many thanks!

brodycj commented 8 years ago

Probably not within this project.

I think the ideal would be a wrapper that takes a database object from either this plugin or Web SQL and gives you a proper TypeScript object.