Skip to content

型のエイリアス定義・使用様態を改善する #172

@kitsne241

Description

@kitsne241
import type { components } from '@/api/schema'
type CampEvent = components['schemas']['EventResponse']

各コンポーネントでこれを書いていると一貫性がないので、
schema.d.ts から直でインポートするのではなく types.d.ts あるいは types.ts で型のエイリアスを定義してそこからインポートする形を取りたい

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions