You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. I saw the README, but I wanted to inject the Ocotkit into my service. I was missing how I could declare the type like this InstanceType<typeof GitHub>. Thanks.
Describe the bug
I am trying to declare a variable of the type "octokit" but I can´t get it working.
I have seen some code and also #365 which shows I could do like:
and then just declare my variable as:
const octokit: GitHub
But this doesn´t work. Typescript complains the variable is not exported.
To Reproduce
Expected behavior
The GitHub type should be exported, so I can specify the type of my variables
Additional context
Using version 4.0.0. It works with version 2.2.0. I guess the interface changed. Still I have to be able to declare my variable with correct type.
The text was updated successfully, but these errors were encountered: