-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
33 lines (29 loc) · 905 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//import { AzureProxyOptions } from "azure_blob_proxy/mod.ts";
export type FerryBoxCreateOptions = {
endpoints: Set<string>;
dataVersion: string;
serviceVersion: string;
durationSpecifier: string;
durationSpecifiers: Set<string>;
cloud: string;
azure?: Record<string, string>;
};
// FetchHandler === Deno.ServeHandler
// type alias [Deno.ServeHandler](https://deno.land/[email protected]?s=Deno.ServeHandler&unstable=)
// A handler for HTTP requests. Consumes a request and returns a response.
export type FetchHandler = (request: Request) => Response | Promise<Response>;
export type ListObject = {
name: string;
created: string;
modified: string;
};
export type BlobObject = {
Name: string;
Properties: Record<string, string>;
};
export type EnumerationResultsObject = {
Blobs: Record<string, Array<BlobObject>>;
};
export interface Message {
[key: string]: number | string;
}