Skip to content

Commit

Permalink
messageActionSheet types: Make some object types explicitly inexact.
Browse files Browse the repository at this point in the history
An instance of #3452.
  • Loading branch information
chrisbobbe authored and gnprice committed Mar 12, 2021
1 parent ed1afb6 commit e297dcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/message/messageActionSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import * as logging from '../utils/logging';

// TODO really this belongs in a libdef.
export type ShowActionSheetWithOptions = (
{ options: string[], cancelButtonIndex: number },
{ options: string[], cancelButtonIndex: number, ... },
(number) => void,
) => void;

Expand All @@ -47,13 +47,15 @@ type ButtonDescription = {
dispatch: Dispatch,
_: GetText,
startEditMessage: (editMessage: EditMessage) => void,
...
}): void | Promise<void>,
title: string,

/** The title of the alert-box that will be displayed if the callback throws. */
// Required even when the callback can't throw (e.g., "Cancel"), since we can't
// otherwise ensure that everything that _can_ throw has one.
errorMessage: string,
...
};

//
Expand Down

0 comments on commit e297dcc

Please sign in to comment.