Skip to content
Agentmart
Submit a tool

expo-types

Patrones de TypeScript: interfaces, tipos compartidos, strict mode.

Skill by myquota

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cabrerojas-expo-types

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Patrones de TypeScript: interfaces, tipos compartidos, strict mode. Trigger: Cuando se definen interfaces, se trabaja con tipos compartidos, o se sigue TypeScript patterns.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/expo-types

What's inside

Skill name
expo-types
Description
Patrones de TypeScript: interfaces, tipos compartidos, strict mode. Trigger: Cuando se definen interfaces, se trabaja con tipos compartidos, o se sigue TypeScript patterns.
License
MIT
Metadata
author: myquota · version: 1.0
Instructions
248 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Propósito

Mantener tipado consistente en MyQuota App con TypeScript strict mode.

---

## Ubicación de Tipos

```
src/
├── shared/types/           # Interfaces usadas en múltiples features
│   ├── creditCard.ts
│   ├── transaction.ts
│   ├── quota.ts
│   ├── billingPeriod.ts
│   ├── user.ts
│   └── category.ts
│
└── features/<feature>/types/  # Interfaces de un solo feature
    └── featureSpecific.ts
```

---

## Regla de Ubicación

| Situación | Ubicación |
|-----------|-----------|
| Interface usada en 1 feature | `features/<feature>/types/` |
| Interface usada en 2+ features | `shared/types/` |
| DTOs para crear/actualizar | Junto a la interface principal |

---

## Template: Interface de Entidad

```typescript
// src/shared/types/creditCard.ts

export interface CreditCard {
  id: string;
  createdAt: string;     // ISO string (el backend devuelve strings)
  updatedAt: string;
  deletedAt?: string | null;

  name: string;
  lastFourDigits: string;
  color: string;
  closingDay: number;
  paymentDay: number;
}

// DTO para crear
export interface CreateCreditCardDto {
  name: string;
  lastFourDigits: string;
  color: string;
  closingDay: number;
  paymentDay: number;
}

// DTO para actualizar (parcial)
export type UpdateCreditCardDto = Partial<CreateCreditCardDto>;
```

---

## Template: Props de Componente

```typescript
// Definir interface para props
interface CreditCardItemProps {
  card: CreditCard;
  onPress?: () => void;
  showActions?: boolean;
}

export default function CreditCardItem({
  card,
  onPress,
  showActions = false,
}: CreditCardItemProps) {
  // ...
}
```

---

## Fechas

**El backend devuelve ISO strings**, no objetos `Date`:

```typescript
// ✅ Correcto
export interface BillingPeriod {
  id: string;
  startDate: string;    // "2025-03-01T00:00:00.000Z"
  endDate: string;
  closingDate: string;
}

// ❌ Incorrecto
export interface BillingPeriod {
  startDate: Date;      // NO — la API devuelve strings
}
```

---

## Opcionales

```typescript
// Propiedad puede no existir
deletedAt?: string | null;

// Propiedad requerida pero puede ser null
description: string | null;

// Propiedad opcional con default

From cabrerojas/myquota-app, MIT.

More from cabrerojas/myquota-app

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Aug 15, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from myquota

Cite this page

expo-types skill. Agent Mart. https://agentmart.dev/skills/cabrerojas-expo-types (last updated 2026-10-24)