Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Fixed importing sqlite3#verbose using destructuring syntax - #1632

Merged
daniellockyer merged 1 commit into
TryGhost:masterfrom
mahdi-farnia:fix-ts-import
Sep 8, 2022
Merged

Fixed importing sqlite3#verbose using destructuring syntax#1632
daniellockyer merged 1 commit into
TryGhost:masterfrom
mahdi-farnia:fix-ts-import

Conversation

@mahdi-farnia

Copy link
Copy Markdown
Contributor

sqlite3#verbose now returns sqlite3 instead of globalThis object when
bound to undefined (void 0). This enables importing verbose in
typescript using import { verbose as sqlite3 } from "sqlite3". Because
typescript automatically converts import statement to
sqlite3_1.default.verbose();.

sqlite3#verbose now returns sqlite3 instead of globalThis object when
bound to undefined (void 0). This enables importing verbose in
typescript using `import { verbose as sqlite3 } from "sqlite3"`. Because
typescript automatically converts import statement to
`sqlite3_1.default.verbose();`.
@daniellockyerdaniellockyer changed the title Import sqlite3#verbose using destructuring syntaxFixed importing sqlite3#verbose using destructuring syntaxSep 8, 2022
@daniellockyer
daniellockyer merged commit 572f05e into TryGhost:masterSep 8, 2022
@daniellockyer

Copy link
Copy Markdown
Contributor

Thank you! 🙂

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mahdi-farnia@daniellockyer