Add externs file for Sqlite.jsm.

This commit is contained in:
Richard Newman 2016-09-08 18:58:55 -07:00
parent 97bc90ae30
commit d755cd860e
2 changed files with 34 additions and 0 deletions

View file

@ -48,6 +48,7 @@
:compiler :compiler
{ {
:elide-asserts true :elide-asserts true
:externs ["src-browser/externs.js"]
:language-in :ecmascript5 :language-in :ecmascript5
:language-out :ecmascript5 :language-out :ecmascript5
:optimizations :advanced :optimizations :advanced

33
src-browser/externs.js Normal file
View file

@ -0,0 +1,33 @@
var SqliteStatic = {};
/**
* @param {Object} options
* @return {Promise.<Sqlite>}
*/
SqliteStatic.openConnection = function (options) {}
var Sqlite = {}
/**
* @param {string} sql
* @param {Array} bindings
* @return {Promise}
*/
Sqlite.execute = function (sql, bindings) {}
/**
* @return {Promise}
*/
Sqlite.close = function() {}
var StorageRow = {};
/**
* @param {string} index
*/
StorageRow.getResultByIndex = function (index) {}
/**
* @param {string} name
*/
StorageRow.getResultByName = function (name) {}