Function: pickScope()
function pickScope<S, Scope>(schema, scope): ZodObject<Pick<S["shape"], ScopeKeys<S["shape"], Scope>>>;
Defined in: packages/overcast-core/src/config-schema.ts:373
schema with only the fields of ConfigScope scope.
pickScope(schema, "chain") is a layer schema as a multi-chain client reads
it per chain — the backend URL and socket settings, which it states once for
every chain, are gone. pickScope(schema, "host") is the other half.
Type Parameters
| Type Parameter |
|---|
S extends ConfigSchema |
Scope extends ConfigScope |
Parameters
| Parameter | Type |
|---|---|
schema | S |
scope | Scope |
Returns
ZodObject<Pick<S["shape"], ScopeKeys<S["shape"], Scope>>>