-
Hey there,
great work with superstruct. I was especially happy to see that it does not bloat the browser bundle like other validation libs do.
One thing is holding me back to switch to superstruct…
jota updated
3 months ago
-
For a while, since before the Typescript refactoring, I was using my own type definition for Document like this:
```ts
export class Document {
constructor(
source?: firestore.DocumentR…
-
Currently, we have:
- `isUndefined`
- `isObject`
- `isOneOf`
- `isString`
- `isBoolean`
It might be beneficial to have a validation / parsing that can handle more complex object shapes, such…
mxdvl updated
5 months ago
-
This change https://github.com/ianstormtaylor/superstruct/commit/774917717741a38b2489713f1b7a2d3fead3bdca was a breaking change for our project.
We needed to add this webpack rule so that it transp…
-
Enum of named structs is one of usual patterns:
```rust
struct Foo {}
struct Bar {}
enum FooBar {
Foo(Foo),
Bar(Bar),
}
```
Are there any ways to reduce the amount of boilerplat…
rosik updated
2 months ago
-
Hi there,
First, thank you for this excellent library. It's great!
I stumbled upon `superstruct` when searching for a way to define both runtime validation and TypeScript types in one place, wit…
-
In 0.36.0, if you have a struct `Sub` which extends an abstract struct `Sup`, where `Sup` includes a generic module `Mod(T)` as `Mod(Sup)`, `Sub#is_a? Mod(Sup)` will evaluate to `false`, when it was f…
-
I have a potential fix for bug #150.
The card is failing to load on on old iOS devices as Safari/Webkit only supported the nullish coalescing operator '??' from iOS version 13.4.
I searched the …
cburn updated
3 months ago
-
### Describe the bug
### System Info
```shell
rules: [
{
test: /\.[cm]?[jt]sx?$/,
include: [
// Include all node_modules except localforage
…
-
I try to execute this validate example: https://docs.superstructjs.org/guides/02-validating-data#primitive-values
```
import { string } from 'superstruct'
const Struct = string()
assert('a s…