Function isBridgeInstance
- isBridgeInstance(
obj: AnyNonPromise,
config?: TypeCheckConfig,
): obj is BridgeInstance<
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]: (Lowercase<(...)> | (...)[])[] };
disallowed?: { [x: string]: Lowercase<string>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
> Returns obj is BridgeInstance<
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]: (Lowercase<(...)> | (...)[])[] };
disallowed?: { [x: string]: Lowercase<string>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>