Files
payload/test/fields/collections/Text/shared.ts
Alessio Gravili ccbaee43cc feat!: various type improvements (#6385)
**BREAKING:**
- Type narrowing for `relationTo` props on filterOptions, relationship
fields and upload fields
- Type narrowing for arguments of lexical relationship, link and upload
features
2024-06-24 16:38:46 -04:00

18 lines
555 B
TypeScript

import type { RequiredDataFromCollection } from 'payload/types'
import type { TextField } from '../../payload-types.js'
export const defaultText = 'default-text'
export const textFieldsSlug = 'text-fields'
export const textDoc: RequiredDataFromCollection<TextField> = {
text: 'Seeded text document',
localizedText: 'Localized text',
disableListColumnText: 'Disable List Column Text',
disableListFilterText: 'Disable List Filter Text',
}
export const anotherTextDoc: RequiredDataFromCollection<TextField> = {
text: 'Another text document',
}