mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
added prop type definition for FormattedDate in Blog example (#6591)
This commit is contained in:
parent
da0cfebe64
commit
c341bd07ac
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
export interface Props {
|
||||
date: Date;
|
||||
}
|
||||
|
||||
const { date } = Astro.props;
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in a new issue