Socket
Socket
Sign inDemoInstall

@azure/core-paging

Package Overview
Dependencies
Maintainers
1
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/core-paging - npm Package Compare versions

Comparing version 1.2.0-alpha.20210811.3 to 1.2.0-alpha.20210816.6

6

package.json

@@ -5,3 +5,3 @@ {

"sdk-type": "client",
"version": "1.2.0-alpha.20210811.3",
"version": "1.2.0-alpha.20210816.6",
"description": "Core types for paging async iterable iterators",

@@ -78,5 +78,5 @@ "tags": [

"devDependencies": {
"@azure/dev-tool": "^1.0.0-alpha",
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
"@microsoft/api-extractor": "7.7.11",
"@azure/eslint-plugin-azure-sdk": "^3.0.0-alpha",
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
"@types/chai": "^4.1.6",

@@ -83,0 +83,0 @@ "@types/mocha": "^7.0.2",

@@ -8,3 +8,3 @@ /**

*/
export declare function getPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings = PageSettings>(pagedResult: PagedResult<TPage, TPageSettings>): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
export declare function getPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings = PageSettings, TLink = string>(pagedResult: PagedResult<TPage, TPageSettings, TLink>): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
/**

@@ -30,13 +30,13 @@ * An interface that allows async iterable iteration both to completion and by page.

*/
export declare interface PagedResult<TPage, TPageSettings = PageSettings> {
export declare interface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {
/**
* Link to the first page of results.
*/
firstPageLink: string;
firstPageLink: TLink;
/**
* A method that returns a page of results.
*/
getPage: (pageLink: string, maxPageSize?: number) => Promise<{
getPage: (pageLink: TLink, maxPageSize?: number) => Promise<{
page: TPage;
nextPageLink?: string;
nextPageLink?: TLink;
}>;

@@ -43,0 +43,0 @@ /**

@@ -9,3 +9,3 @@ import { PagedAsyncIterableIterator, PageSettings, PagedResult } from "./models";

*/
export declare function getPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings = PageSettings>(pagedResult: PagedResult<TPage, TPageSettings>): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
export declare function getPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings = PageSettings, TLink = string>(pagedResult: PagedResult<TPage, TPageSettings, TLink>): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
//# sourceMappingURL=getPagedAsyncIterator.d.ts.map

@@ -34,13 +34,13 @@ /**

*/
export interface PagedResult<TPage, TPageSettings = PageSettings> {
export interface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {
/**
* Link to the first page of results.
*/
firstPageLink: string;
firstPageLink: TLink;
/**
* A method that returns a page of results.
*/
getPage: (pageLink: string, maxPageSize?: number) => Promise<{
getPage: (pageLink: TLink, maxPageSize?: number) => Promise<{
page: TPage;
nextPageLink?: string;
nextPageLink?: TLink;
}>;

@@ -47,0 +47,0 @@ /**

@@ -9,3 +9,3 @@

*/
export declare function getPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings = PageSettings>(pagedResult: PagedResult<TPage, TPageSettings>): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
export declare function getPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings = PageSettings, TLink = string>(pagedResult: PagedResult<TPage, TPageSettings, TLink>): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;

@@ -33,13 +33,13 @@ /**

*/
export declare interface PagedResult<TPage, TPageSettings = PageSettings> {
export declare interface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {
/**
* Link to the first page of results.
*/
firstPageLink: string;
firstPageLink: TLink;
/**
* A method that returns a page of results.
*/
getPage: (pageLink: string, maxPageSize?: number) => Promise<{
getPage: (pageLink: TLink, maxPageSize?: number) => Promise<{
page: TPage;
nextPageLink?: string;
nextPageLink?: TLink;
}>;

@@ -46,0 +46,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc