Geoff
Geoff
Just some thoughts I had about this feature. I think in general SuperStruct wants its user to start with the most restrictive validation, and then gradually loosen it with `optional`...
This could be rebased onto main now that the tests are running on something newer!
I would use `type` here. ```typescript import { assert, string, type } from 'superstruct' const myStruct = type({ name: string() }) const data = { name: 'yeoffrey', age: 23, }...
> Jest still uses ts-node unfortunately, so if you're using jest you're out of luck. We use `ts-jest` and that seems to work.
For now, just use `literal()`. Maybe there should be a suggestion if you create an `enums` with only one value. Intuitively this to me feels like something that could be...
Based on my testing with my fork, we have 94% coverage 💯
> you do not need permission to make a pull request - but you should first check for duplicates... I did search for duplicates for this and could not find...
> there is a schema and [really not very much code](https://github.com/search?q=repo%3Apython-poetry%2Fpoetry-core+console&type=code) to read over in poetry-core. If this is still of interest to you, you can soon make yourself the...
Thanks for the report @MaddyGuthridge! I've tested this locally and I get the same issue. After testing this a bit I think the easiest solution for this is to call...
@arturmuller Alternatively we could accept only a callback function. That would be a breaking change but to me this feels like a bit of a foot gun 😅 Up to...