Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some TypeScript errors found with TypeScript 4.5 / Deno #829

Merged
merged 3 commits into from
Dec 30, 2021

Conversation

bradenmacdonald
Copy link
Contributor

@bradenmacdonald bradenmacdonald commented Dec 23, 2021

While I was working on a Deno driver for Neo4j that uses this codebase, I ran into some Typescript errors which this PR fixes.

These could be only relevant with the newer version of TypeScript (4.5) or with Deno's stricter tsconfig defaults, but I tried to fix them in a way that will work with Node and other versions/configurations of TypeScript without issues.

I'll put explanations of each change inline.

Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

The PR looks good, but the compatibility break with Node 10 should be resolved before the PR get merged. Moving the logging to a file call logging.ts should solve the naming conflict.

packages/neo4j-driver-lite/src/index.ts Outdated Show resolved Hide resolved
@bradenmacdonald
Copy link
Contributor Author

Hmm, I see there is now a CI error but I'm not sure what it is.

Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎹

Thanks for your contribution.

@bigmontz bigmontz merged commit 7386e26 into neo4j:4.4 Dec 30, 2021
@bradenmacdonald bradenmacdonald deleted the fix-typing-for-deno branch January 7, 2022 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants