ianstormtaylor / superstruct

A simple and composable way to validate data in JavaScript (and TypeScript).

Home Page:https://docs.superstructjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing documentation for shorthand `partial` usage

arturmuller opened this issue · comments

I mean this:

partial({
  id: number(),
  name: string(),
})

Happy to open a PR if this shorthand usage of partial is encouraged (ie. it is not an intentionally hidden / deprecated feature).