Function withDivinerInstance
- withDivinerInstance<R>(
mod: any,
closure: (
mod: DivinerInstance<
BaseParamsFields & {
account?: AccountInstance
| "random";
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: string;
consoleLogger?: any;
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]: (...)[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
DeepRestrictToStringKeys<{ schema: string }>,
DeepRestrictToStringKeys<{ schema: string }>,
>,
) => R,
): undefined | R Parameters
- mod: any
- closure: (
mod: DivinerInstance<
BaseParamsFields & {
account?: AccountInstance
| "random";
additionalSigners?: AccountInstance[];
addToResolvers?: boolean;
allowNameResolution?: boolean;
config: DeepRestrictToStringKeys<
{
allowedQueries?: string[];
archiving?: { archivists?: string[]; queries?: string[] };
archivist?: string;
consoleLogger?: any;
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]: (...)[] };
};
sign?: boolean;
storeQueries?: boolean;
timestamp?: boolean;
},
>;
ephemeralQueryAccountEnabled?: boolean;
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
},
DeepRestrictToStringKeys<{ schema: string }>,
DeepRestrictToStringKeys<{ schema: string }>,
>,
) => R
Returns undefined | R