Skip to content

Commit

Permalink
[TS migration][AddPersonalBankAccount] Added draft key
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Jan 30, 2024
1 parent c0446fd commit fc40c22
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ONYXKEYS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ const ONYXKEYS = {
REIMBURSEMENT_ACCOUNT_FORM: 'reimbursementAccount',
REIMBURSEMENT_ACCOUNT_FORM_DRAFT: 'reimbursementAccountDraft',
PERSONAL_BANK_ACCOUNT: 'personalBankAccountForm',
PERSONAL_BANK_ACCOUNT_DRAFT: 'personalBankAccountFormDraft',
},
} as const;

Expand Down Expand Up @@ -547,6 +548,7 @@ type OnyxValues = {
[ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM]: OnyxTypes.Form;
[ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM_DRAFT]: OnyxTypes.Form;
[ONYXKEYS.FORMS.PERSONAL_BANK_ACCOUNT]: OnyxTypes.PersonalBankAccount;
[ONYXKEYS.FORMS.PERSONAL_BANK_ACCOUNT_DRAFT]: OnyxTypes.PersonalBankAccount;
};

type OnyxKeyValue<TOnyxKey extends (OnyxKey | OnyxCollectionKey) & keyof OnyxValues> = OnyxEntry<OnyxValues[TOnyxKey]>;
Expand Down
13 changes: 12 additions & 1 deletion src/types/onyx/Form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@ type PersonalBankAccountForm = Form<PersonalBankAccount>;

export default Form;

export type {AddDebitCardForm, DateOfBirthForm, PrivateNotesForm, DisplayNameForm, FormValueType, NewRoomForm, BaseForm, IKnowATeacherForm, IntroSchoolPrincipalForm, PersonalBankAccountForm};
export type {
AddDebitCardForm,
DateOfBirthForm,
PrivateNotesForm,
DisplayNameForm,
FormValueType,
NewRoomForm,
BaseForm,
IKnowATeacherForm,
IntroSchoolPrincipalForm,
PersonalBankAccountForm,
};

0 comments on commit fc40c22

Please sign in to comment.