Skip to content

Commit 5b27128

Browse files
authoredNov 21, 2020
Add structs, cleanup typings (ianstormtaylor#383)
* add unknown struct * add mask helper * add integer struct * add negative/positive refinements * add pick struct helper * add omit struct helper * fix optional values in object structs, simplify partial structs * add assign utility * add enums schema value * add validation methods to struct classes * cleanup * cleanup typings, dir structure, naming * update structs reference * add missing tests * update readme * add opaque set/map structs * rename shape, make error types analyzable, add refinement info to errors * add regexp struct * update docs, add path to error message * update test * add gitbook docs * add gitbook * add guides, update gitbook * fix gitbook? * update docs * update docs * fix gitbook? * fix gitbook? * update errors docs * fix tests * refactor refinements * rename shape to type, clean up docs * fix errors, coercion * cleanup coercion/refinement naming * cleanup refinements * fix gitbook * update docs * update docs * change masking logic, add options objects * update docs * update docs
1 parent 803c69c commit 5b27128

File tree

248 files changed

+4225
-2172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+4225
-2172
lines changed
 

‎.gitbook.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root: ./docs
2+
structure:
3+
readme: ./readme.md
4+
summary: ./summary.md

‎Readme.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<p align="center">
66
A simple and composable way <br/>
7-
to validate data in JavaScript.
7+
to validate data in JavaScript (and TypeScript).
88
</p>
99
<br/>
1010
<br/>
@@ -19,17 +19,11 @@
1919
</p>
2020

2121
<p align="center">
22-
<a href="https://travis-ci.org/ianstormtaylor/superstruct">
23-
<img src="https://travis-ci.org/ianstormtaylor/superstruct.svg?branch=master">
24-
</a>
2522
<a href="https://unpkg.com/superstruct/umd/superstruct.min.js">
26-
<img src="http://img.badgesize.io/https://unpkg.com/superstruct/umd/superstruct.min.js?compression=gzip&amp;label=size&amp;maxAge=300">
23+
<img src="https://badgen.net/bundlephobia/minzip/superstruct?color=green&label=size">
2724
</a>
2825
<a href="./package.json">
29-
<img src="https://img.shields.io/npm/v/superstruct.svg?maxAge=300&label=version&colorB=007ec6&maxAge=300">
30-
</a>
31-
<a href="./License.md">
32-
<img src="https://img.shields.io/npm/l/slate.svg?maxAge=300">
26+
<img src="https://badgen.net/npm/v/superstruct?color=blue&label=version">
3327
</a>
3428
</p>
3529

0 commit comments

Comments
 (0)
Please sign in to comment.