- asBridgeModule<
TType extends
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]: (Lowercase<(...)> | (...)[])[] };
disallowed?: { [x: string]: Lowercase<string>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>,
>(
value: AnyNonPromise,
config?: TypeCheckConfig,
): undefined | TType Type Parameters
- TType extends 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]: (Lowercase<(...)> | (...)[])[] };
disallowed?: { [x: string]: Lowercase<string>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>
Returns undefined | TType
- asBridgeModule<
TType extends
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]: (Lowercase<(...)> | (...)[])[] };
disallowed?: { [x: string]: Lowercase<string>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>,
>(
value: AnyNonPromise,
assert: StringOrAlertFunction<
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;
},
>,
>,
>,
>,
config?: TypeCheckConfig,
): TType Type Parameters
- TType extends 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]: (Lowercase<(...)> | (...)[])[] };
disallowed?: { [x: string]: Lowercase<string>[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>,
>,
>
Parameters
- value: AnyNonPromise
- assert: StringOrAlertFunction<
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;
},
>,
>,
>,
> Optional
config: TypeCheckConfig