Skip to content

Commit

Permalink
fix: Add missing typing (#1219)
Browse files Browse the repository at this point in the history
Co-authored-by: Jimish Shah <[email protected]>
  • Loading branch information
Jimish Shah and Jimish Shah authored Jun 21, 2023
1 parent 05f1135 commit 46cfd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export interface ITransformEntriesConfig {
*
* The return value must be an object with the same keys as specified in to. Their values will be written to the respective entry fields for the current locale (i.e. {nameField: 'myNewValue'}). If it returns undefined, this the values for this locale on the entry will be left untouched.
*/
transformEntryForLocale: (fromFields: ContentFields, currentLocale: string) => any
transformEntryForLocale: (fromFields: ContentFields, currentLocale: string, { id }: { id: string }) => any
/** (optional) – If true, the transformed entries will be published. If false, they will remain in draft state. When the value is set to "preserve" items will be published only if the original entry was published as well (default true) */
shouldPublish?: boolean | 'preserve'
}
Expand Down

0 comments on commit 46cfd51

Please sign in to comment.