File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ export function useReo() {
77 useEffect ( ( ) => {
88 if ( import . meta. env . VITE_REO_DEV_CLIENT_ID && import . meta. env . VITE_REO_DEV_CLIENT_ID !== '0' ) {
99 loadReoScript ( { clientID : import . meta. env . VITE_REO_DEV_CLIENT_ID } )
10- . then ( ( Reo ) => reoClient = Reo ?. init ?.( { clientID : import . meta. env . VITE_REO_DEV_CLIENT_ID } ) ) ;
10+ . then ( ( Reo ) => {
11+ Reo ?. init ?.( { clientID : import . meta. env . VITE_REO_DEV_CLIENT_ID } ) ;
12+ return reoClient = Reo ;
13+ } ) ;
1114 }
1215 } , [ ] ) ;
1316}
Original file line number Diff line number Diff line change 11declare module 'reodotdev' {
2- export function loadReoScript ( { clientID : string } ) : Promise < {
3- init : null | ( ( { clientID : string } ) => ReoClient ) ;
4- } > ;
2+ export function loadReoScript ( { clientID : string } ) : Promise < ReoClient > ;
53
64 export interface ReoClient {
5+ init : null | ( ( { clientID : string } ) => ReoClient ) ;
76 identify : null | ( ( person : { username : string ; type : string ; company : string ; } ) => void ) ;
87 }
98}
You can’t perform that action at this time.
0 commit comments