Type alias ObjectType<Schema>

ObjectType<Schema>: Simplify<ObjectOptional<Optionalize<{ [ Key in keyof Schema]: Infer<Schema[Key]> }>>>

An object type with support for exact optionals. This is used by the object struct. This uses the ObjectOptional helper to make properties with undefined in their type optional, but not undefined itself.

Deprecated

Use ObjectType from @metamask/superstruct@>=3.2.0 instead.

Type Parameters

  • Schema extends ObjectSchema