Skip to content
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

Conversation

maryia-deriv
Copy link
Collaborator

Changes:

Please provide a summary of the change.

Screenshots:

Please provide some screenshots of the change.

@coveralls
Copy link

coveralls commented Jul 24, 2023

Pull Request Test Coverage Report for Build 5645925431

  • 0 of 54 (0.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.001%) to 8.912%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/trader/src/Stores/base-store.ts 0 54 0.0%
Files with Coverage Reduction New Missed Lines %
packages/p2p/src/constants/api-error-codes.js 1 50.0%
packages/p2p/src/constants/buy-sell.js 1 50.0%
packages/p2p/src/constants/floating-rate.js 1 50.0%
packages/p2p/src/constants/my-profile-tabs.js 1 50.0%
packages/p2p/src/constants/order-list.js 1 50.0%
Totals Coverage Status
Change from base Build 5505818751: -0.001%
Covered Lines: 8517
Relevant Lines: 79366

💛 - Coveralls

@github-actions
Copy link

github-actions bot commented Jul 24, 2023

Generating Lighthouse report...

@maryia-deriv maryia-deriv marked this pull request as ready for review July 24, 2023 14:38
import Validator from 'Utils/Validator';
import { getValidationRules } from './Modules/Trading/Constants/validation-rules';

type TValidationRules = ReturnType<typeof getValidationRules> | Record<string, never>;

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> ?

Copy link
Collaborator Author

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 :)

Copy link

@henry-deriv henry-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kate-deriv kate-deriv merged commit 1a3a8ca into kate-deriv:kate/dtra-269/ts_migration_trader_package_2 Jul 25, 2023
1 check passed
Comment on lines +538 to +542
gtm: Record<string, unknown>;
pushwoosh: Record<string, unknown>;
contract_replay: Record<string, unknown>;
chart_barrier_store: Record<string, unknown>;
active_symbols: Record<string, unknown>;

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 🙇🏻

kate-deriv added a commit that referenced this pull request Sep 27, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants