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
This commit is contained in:
@@ -77,7 +77,7 @@ export const getPayloadHMR = async (options: InitOptions): Promise<Payload> => {
|
||||
}
|
||||
|
||||
if (!cached.promise) {
|
||||
cached.promise = new BasePayload<GeneratedTypes>().init(options)
|
||||
cached.promise = new BasePayload().init(options)
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user