index page typings

This commit is contained in:
tmshv committed 2019-10-17 15:08:53 +03:00
1 parent 4e076b787e
commit 6b8f6e8b66
1 file changed
+11 -1
+11 -1
View File
@@ -8,8 +8,18 @@ import menuModel from '../src/models/menu'
import { meta } from '../src/lib/meta'
import { buildMenu } from '../src/lib/menu'
import { createApiUrl, requestGet, wrapInitialProps } from '../src/next-lib'
import { NextPage } from 'next'
const Page = (props) => (
interface IProps {
pageUrl: string
title: string
meta: any
prevPage: number
nextPage: number
articles: any[]
}
const Page: NextPage<IProps> = props => (
<App
menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true}