Skip to content
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

Fixed typing issues #385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mapping/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export namespace mapping {
logged?: boolean;
timestamp?: number | Long;
fetchSize?: number;
pageState?: number;
pageState?: string | Buffer;
}

interface ModelTables {
Expand Down
6 changes: 3 additions & 3 deletions lib/mapping/model-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ModelMapper {
* execution or a string representing the name of the execution profile.
* @param {String} [executionOptions.executionProfile] The name of the execution profile.
* @param {Number} [executionOptions.fetchSize] The amount of rows to retrieve per page.
* @param {Number} [executionOptions.pageState] A Buffer instance or a string token representing the paging state.
* @param {String|Buffer} [executionOptions.pageState] A Buffer instance or a string token representing the paging state.
* <p>When provided, the query will be executed starting from a given paging state.</p>
* @return {Promise<Result>} A Promise that resolves to a [Result]{@link module:mapping~Result} instance.
* @example <caption>Get user's videos</caption>
Expand Down Expand Up @@ -121,7 +121,7 @@ class ModelMapper {
* execution or a string representing the name of the execution profile.
* @param {String} [executionOptions.executionProfile] The name of the execution profile.
* @param {Number} [executionOptions.fetchSize] The mount of rows to retrieve per page.
* @param {Number} [executionOptions.pageState] A Buffer instance or a string token representing the paging state.
* @param {String|Buffer} [executionOptions.pageState] A Buffer instance or a string token representing the paging state.
* <p>When provided, the query will be executed starting from a given paging state.</p>
* @return {Promise<Result>} A Promise that resolves to a [Result]{@link module:mapping~Result} instance.
*/
Expand Down Expand Up @@ -290,7 +290,7 @@ class ModelMapper {
* @param {Number} [executionOptions.fetchSize] Amount of rows to retrieve per page.
* @param {Boolean} [executionOptions.isIdempotent] Defines whether the query can be applied multiple times
* without changing the result beyond the initial application.
* @param {Number} [executionOptions.pageState] Buffer or string token representing the paging state.
* @param {String|Buffer} [executionOptions.pageState] Buffer or string token representing the paging state.
* <p>When provided, the query will be executed starting from a given paging state.</p>
* @param {Number|Long} [executionOptions.timestamp] The default timestamp for the query in microseconds from the
* unix epoch (00:00:00, January 1st, 1970).
Expand Down