- asModuleState<
TType extends
DeepRestrictToStringKeys<
{
schema: "network.xyo.module.state";
state: { [x: string]: undefined
| string
| number };
},
>,
>(
value: AnyNonPromise,
config?: TypeCheckConfig,
): undefined | TType Type Parameters
- TType extends DeepRestrictToStringKeys<
{
schema: "network.xyo.module.state";
state: { [x: string]: undefined
| string
| number };
},
>
Returns undefined | TType
- asModuleState<
TType extends
DeepRestrictToStringKeys<
{
schema: "network.xyo.module.state";
state: { [x: string]: undefined
| string
| number };
},
>,
>(
value: AnyNonPromise,
assert: StringOrAlertFunction<
DeepRestrictToStringKeys<
{
schema: "network.xyo.module.state";
state: { [x: string]: undefined
| string
| number };
},
>,
>,
config?: TypeCheckConfig,
): TType Type Parameters
- TType extends DeepRestrictToStringKeys<
{
schema: "network.xyo.module.state";
state: { [x: string]: undefined
| string
| number };
},
>