Harry Solovay

Results 84 issues of Harry Solovay

Very rough idea / makes use of hypothetical `$.exactUnion` (#158) factory: ```ts import * as $ from "scale" import { parser } from "scale-cli-parser" const $sync = $.variant( "sync", $.optionalField("config",...

While an all-encompassing union codec (such as that described in #152) might be excessive, we may benefit from an `$.exactUnion` codec, which would be used to describe exact discriminated unions....

Ideally one could extract the native types of specific members of tagged unions. Let's say we want to extract the `$capiBinary` variant-specific type: ```ts const $pathBinary = $.variant("path", $.str) const...

Feature idea: utils for manipulating existing codecs for the sake of versioning. Let's say we're using the following codec to model an event. `v1.ts` ```ts export const $superhero = $.object(...