@floom-dev/shared

v0.1.3

Published

Shared types, contracts, and schemas used across Floom packages.

Readme

@floom-dev/shared

Shared types, contracts, and schemas used across Floom packages.

Exports

  • @floom-dev/shared — Main exports
  • @floom-dev/shared/contracts — API request/response contracts
  • @floom-dev/shared/types — TypeScript type definitions
  • @floom-dev/shared/schemas — Zod validation schemas

Usage

import { ProjectContract, RunContract } from '@floom-dev/shared/contracts';
import { Project, Run, Endpoint } from '@floom-dev/shared/types';
import { projectSchema, runSchema } from '@floom-dev/shared/schemas';

Development

npm run dev    # Watch mode
npm run build  # Build package
npm run test   # Run tests

Guidelines

  • Keep this package dependency-free (except Zod)
  • All types should be exported from the appropriate subpath
  • Changes here affect all consuming packages