How to declare Register #4068
Unanswered
AlansaladA
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,everyone.
The document says that the type of merged config is like this:
declare module "wagmi" {
interface Register {
config: typeof config
}
}
It was working before, but now it gives an error:
Duplicate identifier "Register". ts(2300)
index.d.ts(77, 692): "Register" is also declared here.
Then I noticed that Register is defined as a type in the new version.
How should I declare the type of config now? I don’t want to introduce it in the hook every time.
Beta Was this translation helpful? Give feedback.
All reactions