Global Declaration

If you find typescript barking at you about not knowing about the panda object, you will likely need to create a global.d.ts file similar to the following:

Be sure to check out the sample app for inspiration

// global.d.ts
import { PandaProvider } from "./hooks/usePandaWallet";

declare global {
  interface Window {
    panda: PandaProvider;
  }
}

Last updated