background.ts: Introduce types for redux initialState

This commit is contained in:
Scott Nonnenberg 2022-02-23 10:48:40 -08:00 committed by GitHub
parent 3673b6d101
commit 4763831d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 315 additions and 238 deletions

View file

@ -24,7 +24,7 @@ export type LeftPaneComposePropsType = {
composeContacts: ReadonlyArray<ContactListItemConversationType>;
composeGroups: ReadonlyArray<ConversationListItemPropsType>;
regionCode: string;
regionCode: string | undefined;
searchTerm: string;
isFetchingUsername: boolean;
isUsernamesEnabled: boolean;
@ -355,7 +355,7 @@ function focusRef(el: HTMLElement | null) {
function parsePhoneNumber(
str: string,
regionCode: string
regionCode: string | undefined
): undefined | PhoneNumber {
let result: PhoneNumber;
try {