diff --git a/src/_components/PostListItem.tsx b/src/_components/PostListItem.tsx index 401eb05..c153974 100644 --- a/src/_components/PostListItem.tsx +++ b/src/_components/PostListItem.tsx @@ -1,4 +1,7 @@ -export default (data: Lume.Data, helpers: Lume.Helpers) => { +interface PostListItemData extends Lume.Data { + post: Lume.Data; +} +export default (data: PostListItemData, helpers: Lume.Helpers) => { const { HUMAN_DATE_FORMAT, post } = data; const { date, url } = helpers; diff --git a/src/_includes/layouts/layout.tsx b/src/_includes/layouts/layout.tsx index 98f8603..bc9e093 100644 --- a/src/_includes/layouts/layout.tsx +++ b/src/_includes/layouts/layout.tsx @@ -1,4 +1,8 @@ -export default (data: Lume.Data, helpers: Lume.Helpers) => ( +interface LayoutData extends Lume.Data { + cacheBusterVersion: string; +} + +export default (data: LayoutData, _helpers: Lume.Helpers) => ( diff --git a/src/_includes/layouts/post-layout.tsx b/src/_includes/layouts/post-layout.tsx index 696350a..5732d3f 100644 --- a/src/_includes/layouts/post-layout.tsx +++ b/src/_includes/layouts/post-layout.tsx @@ -1,4 +1,8 @@ -export default (data: Lume.Data, helpers: Lume.Helpers) => { +interface PostLayoutData extends Lume.Data { + HUMAN_DATE_FORMAT: string; +} + +export default (data: PostLayoutData, helpers: Lume.Helpers) => { const { HUMAN_DATE_FORMAT } = data; const { date } = helpers;