Skip to content

Commit

Permalink
Enable returning undefined in deriveEntryForLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
zofiag committed Sep 29, 2019
1 parent dd6c3a5 commit 2eb4ab7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,11 @@ export interface IDeriveLinkedEntriesConfig {
* locale one of the locales in the space being transformed
*
* The return value must be an object with the same keys as specified in derivedFields. Their values will be written to the respective new entry fields for the current locale (i.e. {nameField: 'myNewValue'})
*/
deriveEntryForLocale: (inputFields: ContentFields, locale: string) => { [field: string]: any }
*/
deriveEntryForLocale: (
inputFields: ContentFields,
locale: string
) => { [field: string]: any } | undefined,
}

/**
Expand Down

0 comments on commit 2eb4ab7

Please sign in to comment.