Function withBridgeModule
- withBridgeModule<R>(
mod: any,
closure: (
mod: BridgeModule<
BridgeParams<
DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: string;
client?: {
cache?: true | { max?: number; maxSize?: number; ttl?: number };
discoverRoots?: "start" | "lazy";
maxDepth?: number;
};
consoleLogger?: any;
discoverRoots?: "start"
| "lazy";
host?: {
cache?: true | { max?: number; maxSize?: number; ttl?: number };
maxDepth?: number;
};
labels?: { [x: string]: undefined
| string };
name?: string;
paging?: { [x: string]: { size?: number } };
retry?: { backoff?: number; interval?: number; retries?: number };
schema: string;
security?: {
allowAnonymous?: boolean;
allowed?: { [x: string]: ((...) | (...))[] };
disallowed?: { [x: string]: Lowercase<(...)>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>,
) => R,
): undefined
| R Parameters
- mod: any
- closure: (
mod: BridgeModule<
BridgeParams<
DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: string;
client?: {
cache?: true | { max?: number; maxSize?: number; ttl?: number };
discoverRoots?: "start" | "lazy";
maxDepth?: number;
};
consoleLogger?: any;
discoverRoots?: "start"
| "lazy";
host?: {
cache?: true | { max?: number; maxSize?: number; ttl?: number };
maxDepth?: number;
};
labels?: { [x: string]: undefined
| string };
name?: string;
paging?: { [x: string]: { size?: number } };
retry?: { backoff?: number; interval?: number; retries?: number };
schema: string;
security?: {
allowAnonymous?: boolean;
allowed?: { [x: string]: ((...) | (...))[] };
disallowed?: { [x: string]: Lowercase<(...)>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>,
) => R
Returns undefined | R