[No QA] [TS Migration] Migrate enhanceParametersTest.js, LocalizeTests.js, nativeVersionUpdaterTest.js, createOrUpdateStagingDeployTest.js, TranslateTest.js test to TypeScript#37208
Conversation
blazejkustra
left a comment
There was a problem hiding this comment.
Two minor comments, other than that LGTM
| @@ -0,0 +1,5 @@ | |||
| import type {Writable} from 'type-fest'; | |||
|
|
|||
| const asMutable = <T>(value: T): Writable<T> => value as Writable<T>; | |||
There was a problem hiding this comment.
I think this is already on main, please merge the newest changes
src/utils/arrayDifference.ts
Outdated
| @@ -0,0 +1,5 @@ | |||
| function arrayDifference<T = string>(array1: T[], array2: T[]): T[] { | |||
There was a problem hiding this comment.
| function arrayDifference<T = string>(array1: T[], array2: T[]): T[] { | |
| function arrayDifference<TItem>(array1: TItem[], array2: TItem[]): TItem[] { |
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
puneetlath
left a comment
There was a problem hiding this comment.
Can you help me understand why I see this so often? Not necessarily a problem, just trying to understand.
eslint-disable @typescript-eslint/naming-convention
| @@ -0,0 +1,5 @@ | |||
| function arrayDifference<TItem>(array1: TItem[], array2: TItem[]): TItem[] { | |||
There was a problem hiding this comment.
Can we document this function? What exactly is it doing? Is it returning the any values that are either in array1 or array2 but not in both? Or something else?
There was a problem hiding this comment.
Function documented, let me know what you think! Regarding the other question, it's because some object keys don't fit the @typescript-eslint/naming-convention rule, that expects them to be camelCase, UPPER_CASE or PascalCase.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.4.48-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.48-0 🚀
|
Details
Fixed Issues
$ #25304 #25305 #25306 #25307 #25308
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.