@@ -19,7 +19,7 @@ import { HAAPI_STEPS } from '@curity/haapi-react-sdk/haapi-stepper/data-access/t
1919import { HAAPI_ACTION_CLIENT_OPERATIONS } from '@curity/haapi-react-sdk/haapi-stepper/data-access/types/haapi-action.types' ;
2020import type { HaapiFetchAction } from '@curity/haapi-react-sdk/haapi-stepper/data-access/types/haapi-fetch.types' ;
2121import type {
22- HaapiStepperAction ,
22+ HaapiStepperFormAction ,
2323 HaapiStepperStep ,
2424} from '@curity/haapi-react-sdk/haapi-stepper/feature/stepper/haapi-stepper.types' ;
2525import { ExamplePreviewer } from './ExamplePreviewer' ;
@@ -49,8 +49,7 @@ function TabbedAuthenticatorSelector() {
4949 }
5050
5151 const selectorAction = selectStep . dataHelpers . actions ?. selector [ 0 ] ;
52- // Selector options are already typed as `HaapiStepperAction[]` — no cast needed.
53- const options = selectorAction ?. model . options ?? [ ] ;
52+ const options = ( selectorAction ?. model . options ?? [ ] ) as HaapiStepperFormAction [ ] ;
5453 const bankIdOption = options . find ( isBankId ) ;
5554 const tabOptions = bankIdOption ? [ bankIdOption , ...options . filter ( option => option !== bankIdOption ) ] : options ;
5655 const activeTabOption = tabOptions [ activeIndex ] ;
@@ -75,7 +74,7 @@ function TabbedAuthenticatorSelector() {
7574 return (
7675 < Tabs
7776 activeKey = { String ( activeIndex ) }
78- onChange = { key => selectTabOption ( Number ( key ) ) }
77+ onChange = { ( key : string ) => selectTabOption ( Number ( key ) ) }
7978 items = { tabOptions . map ( ( option , index ) => ( {
8079 key : String ( index ) ,
8180 label : option . title ,
@@ -128,7 +127,7 @@ const isCustomAuthenticatorSelectStep = (step: HaapiStepperStep | null) =>
128127 step . metadata ?. templateArea === CUSTOM_SELECT_TEMPLATE_AREA &&
129128 step . metadata . viewName === CUSTOM_SELECT_VIEW_NAME ;
130129
131- const isBankId = ( option : HaapiStepperAction ) =>
130+ const isBankId = ( option : HaapiStepperFormAction ) =>
132131 option . properties ?. authenticatorType === HAAPI_ACTION_CLIENT_OPERATIONS . BANKID ;
133132
134133const isBankIdWaitStep = ( step : HaapiStepperStep ) => step . metadata ?. viewName === BANKID_WAIT_VIEW_NAME ;
0 commit comments