env.ts
This file
Path
apps/web/src/client/env.ts
12 lines · 422 bytes · TypeScript
Last changed by
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
History of this fileTake it
12345678910111213// Lint keeps "shape" out of code names, so the atom is named for the schema it reads.import type { ProjectName } from "@repo/protocol/ids";
import { ContractsClient } from "../surfaces.ts";import { keys } from "./keys.ts";
export const envSchemaAtom = (project: ProjectName) => ContractsClient.query( "envShape", { project }, { reactivityKeys: [...keys.ledger(project), ...keys.project(project)] } );