Skip to content

Commit

Permalink
further typescript cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrobskyhuntley committed Feb 27, 2024
1 parent 14b930b commit 3eacc27
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
9 changes: 6 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
import { Icon } from 'astro-icon/components'
import comp from "../config.json";
interface Props {
navItems: object[];
navItems: [{
path: string;
title: string;
}];
}
import comp from "../config.json";
const { navItems } = Astro.props;
---

Expand Down
5 changes: 4 additions & 1 deletion src/components/Navbar.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
interface Props {
navItems: object[];
navItems: [{
path: string;
title: string;
}];
}
const {navItems} = Astro.props;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Organization.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ interface Props {
state?: string;
postal?: string;
};
socials?: {
socials?: [{
url?: string;
name?: string;
};
}];
};
}
Expand Down
14 changes: 13 additions & 1 deletion src/components/People.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@
import Person from '@components/Person.astro';
interface Props {
people: object[];
people: [{
name: string;
creds?: string[];
pronouns?: string;
roles?: string[];
email: string;
bio: string;
skills: string[];
socials?: [{
url?: string;
name?: string;
}];
}]
}
const { people } = Astro.props;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Person.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ interface Props {
email: string;
bio: string;
skills: string[];
socials?: {
socials?: [{
url?: string;
name?: string;
};
}];
};
}
Expand Down

0 comments on commit 3eacc27

Please sign in to comment.