Jesse McLean
Article

The Three Horsemen of the Website Apocalypse

Published
Reading time
5 minutes

const codeSelection = {
  _key: q.string(),
  _type: q.literal("block.code"),
  code: ["code.code", q.string()],
  language: [
    "code.language",
    q
      .union([
        q.literal("typescript"),
        q.literal("javascript"),
        q.literal("html"),
        q.literal("css"),
        q.literal("json"),
        q.literal("yaml"),
        q.literal("markdown"),
        q.literal("sh"),
      ])
      .default("typescript"),
  ],
  filename: ["code.filename", q.string().nullish()],
} satisfies Selection;
type CodeSelection = TypeFromSelection<typeof codeSelection>;

Ullamco ea reprehenderit in reprehenderit laborum elit anim nisi consectetur eu occaecat ex eiusmod.

Jesse McLean

Designer

Built by Field