Imported from oyi77/1ai-trade-dex (
frontend/src/types/AGENTS.md). Install upstream withnpx skills add oyi77/1ai-trade-dex --skill types. Copyright stays with the author.
frontend/src/types
Purpose
TypeScript type definitions and interfaces. Extends the core types in src/types.ts with feature-specific types.
Key Files
| File | Description |
|---|---|
features.ts |
Feature-specific types: FeatureFlag, FeatureToggle, FeatureConfig. Used by the admin dashboard for feature management. |
For AI Agents
Working In This Directory
- Types are additive — never modify
src/types.tsdirectly for feature-specific types - Export all types from
features.tsfor use in components - Use
interfacefor object shapes,typefor unions/aliases
Common Patterns
- Feature flags use
FeatureFlag = { name: string; enabled: boolean; description: string }
Dependencies
Internal
src/types.ts— Core type definitions
External
typescript— Type system