mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Followup for #47630 , use ts namespace to group MetadataRoute. `MetadataRoute['xxx']` -> `MetadataRoute.xxx` ### Why? namespace is convenient to write for these grouped types such as `MetadataRoute.Robots`. And `MetadataRoute` itself is not actually a type. So it can be conveniently typed by ts users. ### How? Closes NEXT-912 ---------
21 lines
424 B
TypeScript
21 lines
424 B
TypeScript
import { MetadataRoute } from 'next'
|
|
|
|
export default function manifest(): MetadataRoute.Manifest {
|
|
return {
|
|
name: 'Next.js App',
|
|
short_name: 'Next.js App',
|
|
description: 'Next.js App',
|
|
start_url: '/',
|
|
display: 'standalone',
|
|
background_color: '#fff',
|
|
theme_color: '#fff',
|
|
icons: [
|
|
{
|
|
src: '/favicon.ico',
|
|
sizes: 'any',
|
|
type: 'image/x-icon',
|
|
},
|
|
],
|
|
}
|
|
}
|