Im using Typescript and I am facing this problem
# support-questions
c
Im using Typescript and I am facing this problem
Copy code
windowHandler: (oI: any) => {
    return {
      ...oI,
      location: {
        ...oI.location,
        setHref: (href: HTMLAnchorElement) => {
          Router.push(href);
        },
      },
    };
  },
What is the type for "oI"?. Dont want to use any
r
If you add this as part of supertokens.init, you won’t need to use any. Unfortunately we don’t directly expose its type at the moment
c
I did add it as part of init
this is in frontendConfig.tsx
r
yea but you made a function which returns the config right?
As opposed to calling supertokens.init({ ... }) directly
c
I see