Add externs file for Sqlite.jsm.
This commit is contained in:
parent
97bc90ae30
commit
d755cd860e
2 changed files with 34 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
|||
:compiler
|
||||
{
|
||||
:elide-asserts true
|
||||
:externs ["src-browser/externs.js"]
|
||||
:language-in :ecmascript5
|
||||
:language-out :ecmascript5
|
||||
:optimizations :advanced
|
||||
|
|
33
src-browser/externs.js
Normal file
33
src-browser/externs.js
Normal 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) {}
|
Loading…
Reference in a new issue