fix: add slug to DocumentInfo context (#1389)

This commit is contained in:
Thomas Ghysels
2022-11-14 20:54:05 +01:00
committed by GitHub
parent 7556b54017
commit 4d8cc97475

View File

@@ -10,6 +10,8 @@ export type ContextType = {
collection?: SanitizedCollectionConfig
global?: SanitizedGlobalConfig
type: 'global' | 'collection'
/** Slug of the collection or global */
slug?: string
id?: string | number
preferencesKey?: string
versions?: PaginatedDocs<Version>