Skip to content

Commit

Permalink
Fix typecheck failing
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Feb 6, 2024
1 parent 8b932c3 commit bec9ded
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
16 changes: 8 additions & 8 deletions src/components/Form/inputs/AddDebitCardForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ type AddDebitCardForm = Form<{
/** Whether the form has been submitted */
[INPUT_IDS.SETUP_COMPLETE]: boolean;

[INPUT_IDS.NAME_ON_CARD]: string;
[INPUT_IDS.CARD_NUMBER]: string;
[INPUT_IDS.EXPIRATION_DATE]: string;
[INPUT_IDS.SECURITY_CODE]: string;
[INPUT_IDS.ADDRESS_STREET]: string;
[INPUT_IDS.ADDRESS_ZIP_CODE]: string;
[INPUT_IDS.ADDRESS_STATE]: string;
[INPUT_IDS.ACCEPT_TERMS]: string;
[INPUT_IDS.NAME_ON_CARD]?: string;
[INPUT_IDS.CARD_NUMBER]?: string;
[INPUT_IDS.EXPIRATION_DATE]?: string;
[INPUT_IDS.SECURITY_CODE]?: string;
[INPUT_IDS.ADDRESS_STREET]?: string;
[INPUT_IDS.ADDRESS_ZIP_CODE]?: string;
[INPUT_IDS.ADDRESS_STATE]?: string;
[INPUT_IDS.ACCEPT_TERMS]?: string;
}>;

export type {AddDebitCardForm};
Expand Down
10 changes: 5 additions & 5 deletions src/components/Form/inputs/NewRoomForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const INPUT_IDS = {
} as const;

type NewRoomForm = Form<{
[INPUT_IDS.ROOM_NAME]: string;
[INPUT_IDS.REPORT_DESCRIPTION]: string;
[INPUT_IDS.POLICY_ID]: string;
[INPUT_IDS.WRITE_CAPABILITY]: string;
[INPUT_IDS.VISIBILITY]: string;
[INPUT_IDS.ROOM_NAME]?: string;
[INPUT_IDS.REPORT_DESCRIPTION]?: string;
[INPUT_IDS.POLICY_ID]?: string;
[INPUT_IDS.WRITE_CAPABILITY]?: string;
[INPUT_IDS.VISIBILITY]?: string;
}>;

export type {NewRoomForm};
Expand Down
3 changes: 2 additions & 1 deletion src/libs/actions/PersonalDetails.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type {OnyxEntry, OnyxUpdate} from 'react-native-onyx';
import Onyx from 'react-native-onyx';
import type {DateOfBirthForm} from '@components/Form/inputs';
import * as API from '@libs/API';
import type {
OpenPublicProfilePageParams,
Expand All @@ -21,7 +22,7 @@ import * as UserUtils from '@libs/UserUtils';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type {DateOfBirthForm, PersonalDetails, PersonalDetailsList, PrivatePersonalDetails} from '@src/types/onyx';
import type {PersonalDetails, PersonalDetailsList, PrivatePersonalDetails} from '@src/types/onyx';
import type {SelectedTimezone, Timezone} from '@src/types/onyx/PersonalDetails';
import * as Session from './Session';

Expand Down

0 comments on commit bec9ded

Please sign in to comment.