-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(table): improve typescript defs #495
refactor(table): improve typescript defs #495
Conversation
import {PartialResultStream, Row} from './partial-result-stream'; | ||
import {TransactionOptions} from './transaction'; | ||
|
||
type Key = string|string[]; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -38,25 +67,10 @@ import {TransactionRequest} from './transaction-request'; | |||
* const database = instance.database('my-database'); | |||
* const table = database.table('my-table'); | |||
*/ | |||
class Table extends TransactionRequest { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
name: string; | ||
constructor(database, name) { | ||
super(); | ||
/** |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
} | ||
return TransactionRequest.prototype.createReadStream.call( | ||
this, this.name, query); | ||
createReadStream(request: ReadRequest, options?: TransactionOptions): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Relates to #223