Skip to content

Instantly share code, notes, and snippets.

class Type {
constructor() {
this.raw = null;
this.valid = undefined;
}
static clone(overrides) {
class cloned extends this {};
Object.assign(cloned.prototype, overrides);
return cloned;
let OrgType = Enum.of(['Nonprofit', 'SocialEnterprise'])
// let OrgName = String.with(ShorterThan(40), LongerThan(1))
let Location = Dict({
autocomplete: Geoid,
fallback: Dict({
countryGeoid: Geoid,
})