Jeffrey Konowitch
Jeffrey Konowitch
Explore posts from servers
Aarktype
Created by Jeffrey Konowitch on 1/2/2025 in #questions
`.and` with default, expected behavior?
Using .merge fixed this FYI
import { type } from "arktype";

const a = type({
someVal: type('string > 0')
});

const b = a.merge({
someVal: type('"foo"').default('foo')
});

console.log(b.from({}));
import { type } from "arktype";

const a = type({
someVal: type('string > 0')
});

const b = a.merge({
someVal: type('"foo"').default('foo')
});

console.log(b.from({}));
4 replies
CDCloudflare Developers
Created by benben on 10/10/2023 in #pages-help
Why Pages don't have a wrangler.toml?
@Vero 🐙 @kian Arriving here from a couple hours of googling. “cloudflare pages wrangler.toml” There should absolutely be a callout in the pages docs (and perhaps a console warning) that the wrangler.toml file is not used. There has been much confusion on this subject already. https://github.com/cloudflare/workers-sdk/issues/3757
9 replies