File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
import type { DocumentInfoContext } from '@payloadcms/ui'
2
- import type { CollectionConfig , Field , GlobalConfig , PayloadRequest } from 'payload'
2
+ import type {
3
+ CollectionConfig ,
4
+ CollectionSlug ,
5
+ Field ,
6
+ GlobalConfig ,
7
+ GlobalSlug ,
8
+ PayloadRequest ,
9
+ } from 'payload'
3
10
4
11
export type FieldsOverride = ( args : { defaultFields : Field [ ] } ) => Field [ ]
5
12
@@ -63,7 +70,7 @@ export type SEOPluginConfig = {
63
70
/**
64
71
* Collections to include the SEO fields in
65
72
*/
66
- collections ?: string [ ]
73
+ collections ?: CollectionSlug [ ]
67
74
/**
68
75
* Override the default fields inserted by the SEO plugin via a function that receives the default fields and returns the new fields
69
76
*
@@ -80,7 +87,7 @@ export type SEOPluginConfig = {
80
87
/**
81
88
* Globals to include the SEO fields in
82
89
*/
83
- globals ?: string [ ]
90
+ globals ?: GlobalSlug [ ]
84
91
interfaceName ?: string
85
92
/**
86
93
* Group fields into tabs, your content will be automatically put into a general tab and the SEO fields into an SEO tab
@@ -91,7 +98,7 @@ export type SEOPluginConfig = {
91
98
/**
92
99
* The slug of the collection used to handle image uploads
93
100
*/
94
- uploadsCollection ?: string
101
+ uploadsCollection ?: CollectionSlug
95
102
}
96
103
97
104
export type Meta = {
You can’t perform that action at this time.
0 commit comments