UNPKG

1.62 kBTypeScriptView Raw
1// Copyright (c) .NET Foundation. All rights reserved.
2// Licensed under the MIT License.
3
4import { CosmosDBInput, CosmosDBInputOptions } from './cosmosDB';
5import { GenericInputOptions } from './generic';
6import { FunctionInput } from './index';
7import { SqlInput, SqlInputOptions } from './sql';
8import { StorageBlobInput, StorageBlobInputOptions } from './storage';
9import { TableInput, TableInputOptions } from './table';
10
11/**
12 * [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-blob-input?pivots=programming-language-javascript)
13 */
14export function storageBlob(options: StorageBlobInputOptions): StorageBlobInput;
15
16/**
17 * [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-table-input?pivots=programming-language-javascript)
18 */
19export function table(options: TableInputOptions): TableInput;
20
21/**
22 * [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-cosmosdb-v2-input?pivots=programming-language-javascript)
23 */
24export function cosmosDB(options: CosmosDBInputOptions): CosmosDBInput;
25
26/**
27 * [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-azure-sql-input?pivots=programming-language-javascript)
28 */
29export function sql(options: SqlInputOptions): SqlInput;
30
31/**
32 * A generic option that can be used for any input type
33 * Use this method if your desired input type does not already have its own method
34 */
35export function generic(options: GenericInputOptions): FunctionInput;