Skip to content

Instantly share code, notes, and snippets.

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