Geordi

Results 14 comments of Geordi

Added note: I reproduced this error with rustc 1.56.0 on a M1 MacOS host and an i86_x86 Win10 host

OK... I solved it... but it was awkward First: running `cargo make` doesn't work, you have to run `cargo make serve` so that it correctly sets the feature flags. It...

Just Realized I closed this issue, but no changes were made to fix it... Please update the readme to clearly state that `cargo make` doesn't work, and add a note...

for read only arrays/tuples and objects/records having a `.readonly()` makes sense as well these should transform the type into a `ReadOnlyTuple` for example.

@jviide wrote: > ## Let's get radical > > One interesting & bit radical approach would be to just make all Valita output readonly by default. It would have the...

The other thing you can do is manipulate the inferred type ```typescript const A = v.object({ a: v.string(), b: v.string(), }); type ARO = Readonly // entirely read only type...

how about calling it `literals` ? ```typescript import * as v from '@badrap/valita'; const A = v.literals('a', 'b'); // equivalent to const B = v.union(v.literal('a'), v.literal('b')); ```

@dimatakoy - your example doesn't really capture my intent. This is what I add to my projects that use valita: ```typescript export const vLiterals = (...literals: L[]) => v.union(...literals.map(l =>...

No, as in scopes delimited by indented sections of text (al a pug python haskell, etc.)

I tried to reproduce this again and now it's working :/