Skip to content

Commit

Permalink
update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp985 committed Dec 19, 2024
1 parent 7172d90 commit 0689c92
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/doctorCard.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import Link from "@docusaurus/Link";
import useBaseUrl from "@docusaurus/useBaseUrl";
import { FaCalendarAlt } from "react-icons/fa";
import TeamMember from "../models/teamMember";
import ITeamMember from "../models/teamMember";

export function DoctorCard({
imageUrl,
name,
features,
position,
id,
}: TeamMember) {
}: ITeamMember) {
const imgUrl = useBaseUrl(imageUrl);
return (
<div
Expand Down
8 changes: 4 additions & 4 deletions src/data/teamData.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import TeamMember from "../models/teamMember";
import ITeamMember from "../models/teamMember";

export const getTeam = () => {
const team: TeamMember[] = [];
const team: ITeamMember[] = [];

const gerd: TeamMember = {
const gerd: ITeamMember = {
id: "gerhard",
name: "Dr. med. Gerhard Roggenland",
features: FeaturesGerd,
imageUrl: "img/gerd_square.jpg",
position: "Facharzt für Orthopädie und Unfallchirurgie",
};
team.push(gerd);
const katharina: TeamMember = {
const katharina: ITeamMember = {
id: "katharina",
name: "Katharina Roggenland",
features: FeaturesKatharina,
Expand Down
2 changes: 1 addition & 1 deletion src/models/teamMember.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default class TeamMember {
export default interface ITeamMember {
id: "katharina" | "gerhard" | "nannie";
name: string;
imageUrl: string;
Expand Down
9 changes: 6 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "@docusaurus/tsconfig",
"include": ["src/"]
}
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"strict": true
}
}

0 comments on commit 0689c92

Please sign in to comment.