UNPKG

@azure-utils/storybooks

Version:

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

6 lines (5 loc) 617 B
import type { InvocationContext } from "@azure/functions"; import type { ContainerClient } from "@azure/storage-blob"; export declare function generateAzureStorageContainerName(id: string): string; export declare function uploadDirToAzureBlobStorage(context: InvocationContext, containerClient: ContainerClient, dirpath: string, blobOptions?: (blobName: string) => string): Promise<void>; export declare function deleteBlobsFromAzureStorageContainerOrThrow(context: InvocationContext, containerClient: ContainerClient, prefix: string): Promise<import("@azure/storage-blob").BlobBatchSubmitBatchResponse | undefined>;