Generated types gives the following as the type for JSON fields.
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
How do I tell it to use my interface or type?
Help 🥺
@jarrod69420 @jacobsfletch Sorry for tagging. Any suggestions?
right now it is not possible to "override" a specific field's generated type, but it would be pretty easy to build a new feature to do so
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.