https://supertokens.com/ logo
Title
c

Chunkygoo

12/05/2022, 12:44 AM
Im using Typescript and I am facing this problem
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

rp

12/05/2022, 4:58 AM
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

Chunkygoo

12/05/2022, 5:22 AM
I did add it as part of init
this is in frontendConfig.tsx
r

rp

12/05/2022, 5:43 AM
yea but you made a function which returns the config right?
As opposed to calling supertokens.init({ ... }) directly
c

Chunkygoo

12/05/2022, 6:09 AM
I see