UNPKG

@azure-utils/storybooks

Version:

Utils to upload and manage Storybooks via Azure Functions and storage.

13 lines (12 loc) 732 B
import { TableClient, TableEntityResult } from "@azure/data-tables"; import type { InvocationContext } from "@azure/functions"; type TableSuffix = "Builds" | "Labels"; export declare function generateProjectAzureTableName(projectId: string, tableSuffix: TableSuffix): string; export type ListAzureTableEntitiesOptions<T extends Record<string, unknown>> = { limit?: number; filter?: string | ((item: T) => boolean); select?: string[]; sort?: "latest" | ((a: T, b: T) => number); }; export declare function listAzureTableEntities<T extends Record<string, unknown>>(context: InvocationContext, tableClient: TableClient, queryOptions?: ListAzureTableEntitiesOptions<T>): Promise<Array<TableEntityResult<T>>>; export {};