Skip to content

Commit 3edcc40

Browse files
authored
fix(plugin-import-export): incorrect custom type on toCSVFunction changed to toCSV (#12796)
Type declaration extending `custom.['plugin-import-export']` was incorrectly named `toCSVFunction` instead of `toCSV`. This changes the type to match the correct property name `toCSV`.
1 parent e60db07 commit 3edcc40

File tree

1 file changed

+1
-1
lines changed
  • packages/plugin-import-export/src

1 file changed

+1
-1
lines changed

packages/plugin-import-export/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const importExportPlugin =
9191
declare module 'payload' {
9292
export interface FieldCustom {
9393
'plugin-import-export'?: {
94-
toCSVFunction?: ToCSVFunction
94+
toCSV?: ToCSVFunction
9595
}
9696
}
9797
}

0 commit comments

Comments
 (0)