I do not have the allowSyntheticDefaultImports hack turned on. I get the error:
Module '"js-confetti"' can only be default-imported using the 'allowSyntheticDefaultImports' flagts(1259)
js-confetti.d.ts(3, 3): This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.
Everything works as expected after changing export = to export default. Looking at the implementation, it does use export default, so that seems like a correct typing.
I do not have the allowSyntheticDefaultImports hack turned on. I get the error:
Everything works as expected after changing
export =
toexport default
. Looking at the implementation, it does useexport default
, so that seems like a correct typing.