Version 1.3.31 and v1.4.0-beta.13 type inference error

I tried upgrading to both 1.3.31 and v1.4.0-beta.13 from v1.4.0-beta.6 as i wanted to test a fix that was made to organization plugin in https://github.com/better-auth/better-auth/pull/5337

The inferred type of 'IamProvider' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary. (ts 2742)


Now I'm facing this issue. Both Version 1.3.31 and 1.4.0-beta.13 versions. Although better-call is not mentioned in peerDeps the typeinference still fails..
GitHub
Fixes: #5119


Summary by cubic
Make the organization plugin compatible with TypeScript’s exactOptionalPropertyTypes. Prevents type errors by making the inferred query type always an object; adds a...
Was this page helpful?