#Does Astro care about exporting a type vs an interface?

3 messages · Page 1 of 1 (latest)

blazing trail
#

I typically use type instead of interface in my projects. Does Astro care about that with regards to its components?

I.e. This:

export type Props = {
  title: string,
}

const { title } = Astro.props

vs

export interface Props {
  title: string;
}

const { title } = Astro.props
velvet thunder
#

Nope, we'll use whatever is named "Props"

#

You don't have to export it either