-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maryia/WEBREL-323/feat: ts migration of base-store #18
maryia/WEBREL-323/feat: ts migration of base-store #18
Conversation
Pull Request Test Coverage Report for Build 5645925431
💛 - Coveralls |
⏳ Generating Lighthouse report... |
import Validator from 'Utils/Validator'; | ||
import { getValidationRules } from './Modules/Trading/Constants/validation-rules'; | ||
|
||
type TValidationRules = ReturnType<typeof getValidationRules> | Record<string, never>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the point of Record<string, never>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry-deriv it's representing an empty object which is validation_rules's initial value in this store :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
1a3a8ca
into
kate-deriv:kate/dtra-269/ts_migration_trader_package_2
gtm: Record<string, unknown>; | ||
pushwoosh: Record<string, unknown>; | ||
contract_replay: Record<string, unknown>; | ||
chart_barrier_store: Record<string, unknown>; | ||
active_symbols: Record<string, unknown>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maryia-deriv I recommend not doing this, We should either type things properly or if out of the scope of this PR just leave it as it was with the TS error for the next person to fix 🙇🏻
…ckage (deriv-com#9284) * fix: ts-migrate screen small * fix: sass was unable to be found * chore: add key files from prev branch * chore: empty commit * Maryia/dtra-279/TS migration [Trader]: TradeModals, MarketUnavailableModal & UnsupportedContractModal (#16) * maryia/WEBREL-323/feat: ts migration of base-store (#18) * chore: start ts migration of base-store * chore: add more types to BaseStore * chore: added more types to base-store * chore: added more types to base-store * chore: finalize base-store ts migration * chore: reorder imports * Maryia/webrel-483/TS migration of ContractType function (#17) * chore: start ts migration * chore: continue ts migration of contract-types * chore: add more types to contract-types * chore: add type for getContractValues return value * chore: improve reduce types * fix: sonarcloud issues (#19) * chore: update reg exp * chore: remove code smell * chore: remove security hotspot * chore: update reg exp * chore: update reg exp to prev version * fix: conflict * fix: ts error * refactor: apply suggestions * fix: resolve more conflicts * fix: conflicts in start date * fix: type of onchangestartdate * fix: type of contract cat list in usetraderstore * fix: types in contract type and allow equals * refactor: aplly part of suggestions * refactor: remove unused type * refactor: remove wrong types * refactor: types of time * refactor: revert changes * chore: empty commit * fix: more conflicts --------- Co-authored-by: Henry Hein <henry@regentmarkets.com> Co-authored-by: Akmal Djumakhodjaev <akmal@binary.com> Co-authored-by: Maryia <103177211+maryia-deriv@users.noreply.github.com>
Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.