I am building a breadcrumb component that I want to pass a strongly typed version of the link in, I have the params for this component defined as:
export interface BreadcrumbParams {
homeLink: LinkPropsOptions;
pages: BreadcrumbPage[];
}
So it is working when I do things like this:
var breadCrumbParams: BreadcrumbParams = {
homeLink: { to: '/$account_id/home', params: { account_id: account_id }},
pages: []
};
But what is not erroring on is if I didn't include the params on the homeLink, how can I make that required like the standard Link does?