﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head># MapSchema

> This document is the Markdown version of [valibot.dev/api/MapSchema/](https://valibot.dev/api/MapSchema/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Map schema interface.

## Generics

- `TKey` `extends BaseSchema<unknown, unknown, BaseIssue<unknown>>`
- `TValue` `extends BaseSchema<unknown, unknown, BaseIssue<unknown>>`
- `TMessage` `extends ErrorMessage<MapIssue> | undefined`

## Definition

- `MapSchema` `extends BaseSchema<InferMapInput<TKey, TValue>, InferMapOutput<TKey, TValue>, MapIssue | Infe