-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to latest @octokit/rest #983
Conversation
Yeah, that error is because I'm doing this here - I can fix that to To support all forms of the export, you probably want something like: export class OctoKit {}
export default OctoKit Getting the syntax without the |
I was just looking into that, PR incoming
I tried that, but when doing import * as OctokitDeprecated from "../index";
const { Octokit } = OctokitDeprecated
// Check constructor
new Octokit();
// Check deprecated constructor
new OctokitDeprecated(); I see this error
|
Yeah, my experience is that default exports explode often under TypeScript :-/ |
@orta can you publish a new version of
|
Shipped - I don't have an answer about the default issue there. Does seem weird to me though. ( I also killed all cache on travis and restarted the CI ) |
fd7e559
to
df20c01
Compare
I think we are all set |
Yep, this works for me - thanks! Good luck with the release |
Hey friends 馃憢
In preparation of the upcoming
@octokit/rest
v17, I'm testing against some dependents such as Danger. While at it I hope to be helpful with the upgrade.I already found one problem that I'm addressing here https://github.com/octokit/rest.js/pull/1586
Besides that, I get errors when building:
I guess the problem is the change I did in
@octokit/rest
's index.d.ts?TypeScript is still confusing the hell out of me. Got any pointers? Ideally I'd like to continue supporting both:
import Octokit from "@octokit/rest"
andimport { Octokit } from "@octokit/rest"
for TypeScript users. Starting with v17, it will only beimport { Octokit } from "@octokit/rest"
, so when in doubt, I don't mind breaking theimport Octokit from "@octokit/rest"
usage for TypeScript only. Either works in JS in the latest v16 versionsNote that this PR does relies on the change in https://github.com/octokit/rest.js/pull/1586 in order to reproduce the TypeScript build error.