-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.d.ts
More file actions
28 lines (23 loc) · 772 Bytes
/
index.d.ts
File metadata and controls
28 lines (23 loc) · 772 Bytes
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
import { Server } from 'http';
import { CloudEventFunction, HTTPFunction, InvokerOptions, Function } from './lib/types';
import { LogLevel } from 'fastify';
// Invokable describes the function signature for a function that can be invoked by the server.
export type Invokable = CloudEventFunction | HTTPFunction;
export interface Config {
logLevel: LogLevel;
port: number;
includeRaw: boolean;
}
// start starts the server for the given function.
export declare const start: {
// eslint-disable-next-line no-unused-vars
(func: Invokable | Function, options?: InvokerOptions): Promise<Server>
};
export declare const defaults: {
LOG_LEVEL: LogLevel,
PORT: number,
INCLUDE_RAW: boolean,
BODY_LIMIT: number,
};
// re-export
export * from './lib/types';