API Reference

superstruct-extra

font-family: "Noto Color Emoji"; font-style: normal; font-weight: 400; font-display: swap; src:…

Official Documentation ↗
CompatibilityThis documentation covers version v2.0. Check the official docs for the latest API surface.

Installation

npmnpm install superstruct
pnpmpnpm add superstruct
yarnyarn add superstruct

Methods

Overview

font-family: “Noto Color Emoji”; font-style: normal; font-weight: 400; font-display: swap; src: url(https://static-2v.gitbook.com/~gitbook/static/fonts/noto-color-emoji/Yq6P-KqIXTD0t4D9z1ESnKM3-HpFabts6diysYTngZPnMC1MfLd4gw.0.woff2) format(

API reference status

This page lists only entry points that appear verbatim in the official README examples: validate. Parameter and return types are not given by the official README, so signatures are marked unverified.

Errors

The following points are quoted verbatim from the official documentation. 来源:https://docs.superstructjs.org/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:52:45.791Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.

  • But Superstruct is designed for validating data at runtime, so it throws (or returns) detailed runtime errors for you or your end users. (https://docs.superstructjs.org/)

Verification notes

API reference evidence

Fetched from official sources on 2026-11-08T17:25:00+08:00 via WebFetch https://docs.superstructjs.org/api-reference/core.md.

FAQ

What does superstruct do?
font-family: "Noto Color Emoji"; font-style: normal; font-weight: 400; font-display: swap; src: url(https://static-2v.gitbook.com/~gitbook/static/fonts/noto-color-emoji/Yq6P-KqIXTD0t4D9z1ESnKM3-HpFabt
How do I install superstruct?
Run `npm install superstruct`.
Where can I verify the API details?
Official repository/documentation: https://docs.superstructjs.org/. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.