// @noEmit: true // @allowJs: true // @checkJs: true // @Filename: lovefield-ts.d.ts // bug #27352, crashes from github.com/google/lovefield declare namespace lf { export interface Transaction { attach(query: query.Builder): Promise> begin(scope: Array): Promise commit(): Promise exec(queries: Array): Promise>> rollback(): Promise stats(): TransactionStats } } // @Filename: lovefield.js lf.Transaction = function() {}; /** * @param {!Array} scope * @return {!IThenable} */ lf.Transaction.prototype.begin = function(scope) {};