• This project
    • Loading...
  • Sign in

Bruno Predot / tmdb_test

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • tmdb_test
  • interfaces
  • credit.ts
  • Bruno Predot's avatar
    Mise en place d'un model pour le fetch des crédits + interface. · 785892e3 ...
    785892e3 Browse Files
    Ajout fonction dans le composable useTMDB.
    Modification interface et model Movie pour ajouter la liaison avec Credit.
    Ajout du fetch des credit dans la page détails.
    Bruno Predot authored 2025-04-25 17:36:18 +0200
credit.ts 313 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import type { MovieInterface } from "~/interfaces/movie";

export interface CreditInterface {
  id: number;
  name: string;
  job?: string;
  character?: string;
}

export type CreditsResponse = {
  id: number;
  cast: CreditInterface[],
  crew: CreditInterface[],
  movie_id: unknown;
  movie: MovieInterface;
}