From 7bff19a5716de48d20ddde26d1f47ac46fcb651f Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Sun, 16 Sep 2018 01:57:37 +0300 Subject: [PATCH] flow: Specify return type for `constructActionSheetButtons` This function being exported, now requires return type to be specified. --- src/lightbox/LightboxActionSheet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lightbox/LightboxActionSheet.js b/src/lightbox/LightboxActionSheet.js index 0e0e2259ff8..f1723b33808 100644 --- a/src/lightbox/LightboxActionSheet.js +++ b/src/lightbox/LightboxActionSheet.js @@ -56,7 +56,8 @@ const actionSheetButtons: ButtonType[] = [ { title: 'Cancel', onPress: () => false }, ]; -export const constructActionSheetButtons = () => actionSheetButtons.map(button => button.title); +export const constructActionSheetButtons = (): string[] => + actionSheetButtons.map(button => button.title); export const executeActionSheetAction = ({ title, ...props }: ExecuteActionSheetActionType) => { const button = actionSheetButtons.find(x => x.title === title);