Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded types #41752

Merged
merged 1 commit into from Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -45,7 +45,6 @@ interface IEntry {
: `default: PageComponent`
}
config?: {}
Head?: any
generateStaticParams?: (params?: PageParams) => Promise<any[]>
revalidate?: RevalidateRange<TEntry> | false
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/next-typescript.ts
Expand Up @@ -27,7 +27,7 @@ const DISALLOWED_SERVER_REACT_APIS: string[] = [
'createFactory',
]

const ALLOWED_EXPORTS = ['config', 'generateStaticParams', 'Head']
const ALLOWED_EXPORTS = ['config', 'generateStaticParams']

const API_DOCS: Record<
string,
Expand Down