Skip to content

Refactor: Unsafe ny usage in Component Props #5

Description

@HarshalPatel1972

Problem

The AddPinModal component relies on the �ny type for its props and map callbacks.

Why it matters

Bypassing TypeScript's safety checks makes the app brittle to upstream API changes and masks potential runtime errors.

Suggested Solution

Define a strong interface for AddPinModalProps.

Severity

Low

Category

Refactor

Estimated Difficulty

Easy

Files

src/app/(app)/pins/page.tsx`n

Evidence

// src/app/(app)/pins/page.tsx:327
function AddPinModal({ repos, onAdd, onClose }: any) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions