diff options
author | 2023-03-20 07:49:38 -0400 | |
---|---|---|
committer | 2023-03-20 19:49:38 +0800 | |
commit | c341bd07ac84e51aeb97fab581e9730a540c5c72 (patch) | |
tree | fd81d8fb1f9336e14ab51f1058f79cf4917e8591 | |
parent | da0cfebe64fb262e3bbfed00d0e656241f7b5817 (diff) | |
download | astro-c341bd07ac84e51aeb97fab581e9730a540c5c72.tar.gz astro-c341bd07ac84e51aeb97fab581e9730a540c5c72.tar.zst astro-c341bd07ac84e51aeb97fab581e9730a540c5c72.zip |
added prop type definition for FormattedDate in Blog example (#6591)
-rw-r--r-- | examples/blog/src/components/FormattedDate.astro | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/blog/src/components/FormattedDate.astro b/examples/blog/src/components/FormattedDate.astro index 9d51dc5fc..1a40fbc09 100644 --- a/examples/blog/src/components/FormattedDate.astro +++ b/examples/blog/src/components/FormattedDate.astro @@ -1,4 +1,8 @@ --- +export interface Props { + date: Date; +} + const { date } = Astro.props; --- |