Skip to content

Commit

Permalink
fix: add type for new dtrader events (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu-deriv authored Oct 28, 2024
1 parent f78ff3f commit 48af902
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,15 @@ type TCashierDepositOnboardingFormAction = {
login_id?: string
}

type TNewDtraderTradeForm = {
action?: 'open' | 'select_trade_type' | 'select_market_type' | 'open_guide' | 'run_contract' | 'close_contract'
trade_name?: string
market_name?: string
subform_name?: string
trade_type_count?: number
contract_id?: number
}

export type TEvents = {
ce_virtual_signup_form: VirtualSignupForm
ce_email_verification_form: EmailVerificationForm
Expand All @@ -411,4 +420,5 @@ export type TEvents = {
ce_wallets_homepage_form: WalletsHomepageFormAction
ce_notification_form: TNotificationsTrayForm
ce_cashier_deposit_onboarding_form: TCashierDepositOnboardingFormAction
ce_new_dtrader_trade_form: TNewDtraderTradeForm
}

0 comments on commit 48af902

Please sign in to comment.