Type Alias: PreviewData
PreviewData =
object
Defined in: packages/next/src/handlers/types.ts:4
The shape of the preview data that's stored in the preview data cookie
Indexable
[k: string]: unknown
Properties
authToken
authToken:
string
Defined in: packages/next/src/handlers/types.ts:23
The auth token that should be used to fetch the data
id
id:
number
Defined in: packages/next/src/handlers/types.ts:8
The id of the resource
postType
postType:
string
Defined in: packages/next/src/handlers/types.ts:13
The post type
revision
revision:
boolean
Defined in: packages/next/src/handlers/types.ts:18
Whether the preview data is on a revision