@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 9 lines 397 Bytes
Raw
1 import * as Schema from "effect/Schema";
2 import type { CustomerId } from "../Customer/Customer.id.ts";
3
4 export const AccountId = Schema.String.pipe(Schema.brand("AccountId"));
5 export type AccountId = typeof AccountId.Type;
6
7 /** Every customer gets a main account with a predictable id. */
8 export const mainAccountId = (customerId: CustomerId): AccountId =>
9 AccountId.make(`${customerId}-main`);