From 2eb4ab7b8419eef5ee0b302d663bada3922b2f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zofia=20Go=CC=81ralewska?= Date: Sun, 29 Sep 2019 19:31:33 +0200 Subject: [PATCH] Enable returning undefined in deriveEntryForLocale --- index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 61ce87651..58c18f59f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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, } /**