Let's say I export a prop persons that is array of Person type
//components/Person.astro
type Person = {
name: string;
isActive?: boolean;
};
export interface Props {
persons: Array<Person>;
}
const { persons } = Astro.props;
Now I want isActive to be true by default for each person when I import Astro.props. What is correct syntax for it?