Skip to content

Commit

Permalink
fix ReportCriteria types
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq committed Jul 3, 2024
1 parent 2a94132 commit 797b316
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions confiture-web-app/src/components/report/ReportCriteria.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import { useRoute } from "vue-router";
import { pluralize } from "../../utils";
import { ReportErrors, ReportTransverseError } from "./getReportErrors";
import {
ReportImprovement,
ReportTransverseImprovement
} from "./getReportImprovements";
const props = defineProps<{
pagesData: ReportErrors[];
transverseData: ReportTransverseError[];
pagesData: ReportErrors[] | ReportImprovement[];
transverseData: ReportTransverseError[] | ReportTransverseImprovement[];
showFilters?: boolean;
}>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import rgaa from "../../criteres.json";
import { ReportStoreState } from "../../store";
import { CriteriumResultStatus, ReportCriteriumResult } from "../../types";

type ReportImprovement = {
export type ReportImprovement = {
id: number;
url: string;
order: number;
Expand Down Expand Up @@ -76,7 +76,7 @@ function getTopicName(topicNumber: number) {
return rgaa.topics.find((t) => t.number === topicNumber)?.topic;
}

type ReportTransverseImprovement = {
export type ReportTransverseImprovement = {
number: number;
name?: string;
improvements: {
Expand Down

0 comments on commit 797b316

Please sign in to comment.