A factory function to create Id Schema for a specific table.

import * as S from "@effect/schema/Schema";
import { id } from "@evolu/react";

const TodoId = id("Todo");
type TodoId = typeof TodoId.Type;
  • Type Parameters

    • T extends string

    Parameters

    • table: T

    Returns brand<brand<Schema<string, string, never>, "Id">, T>