types-and-constants

Installation
SKILL.md

Types and Constants

Shared types belong in types/, not in lib/, API routes, or component files. Domain constants (labels, colors, option lists, enum arrays) belong in lib/, not in types/.

Import paths

// ✅ GOOD — types from @/types, constants from @/lib
import type { JobApplication, ApplicationStatus } from '@/types/services/jobs'
import { STATUS_LABELS, APPLICATION_STATUSES } from '@/lib/jobs'

// ❌ BAD — types from lib
import type { ApplicationStatus } from '@/lib/jobs-import'

// ❌ BAD — constants in types/
// types/services/jobs/constants.ts with STATUS_LABELS
Installs
3
Repository
1chooo/skills
GitHub Stars
1
First Seen
6 days ago
types-and-constants — 1chooo/skills