base page getStaticProps typing improved

This commit is contained in:
tmshv committed 2021-04-05 23:33:04 +03:00
1 parent cd2800c79d
commit 8a88b59f70
1 file changed
+1 -1
+1 -1
View File
@@ -160,7 +160,7 @@ const Index: NextPage<Props> = props => {
)
}
export const getStaticProps: GetStaticProps<any> = async ctx => {
export const getStaticProps: GetStaticProps<Props> = async ctx => {
const slug = paramsToSlug(ctx.params.slug)
const url = `https://hudozka.tmshv.com/pages?slug=${slug}`
const page = await apiGet(createPage)(url, null)