y-lohse / inkjs

A javascript port of inkle's ink scripting language.
http://www.inklestudios.com/ink/
MIT License
507 stars 104 forks source link

Remove export assignment from ink.d.ts #1049

Closed maetl closed 7 months ago

maetl commented 7 months ago

Description

As described in #959, there is an incompatibility between how this declaration file is structured and the expectations of recent TypeScript versions.

Removing the export assignment ensures that only the default symbol is exported.

An export assignment cannot be used in a module with other exported elements.

Perhaps a better long term solution would be to upgrade the version of TypeScript used in the project. Happy to help with this if I can get a bit of guidance around where to start and managing build tools.

Checklist

smwhr commented 7 months ago

Merged.

Ask away if you need guidance/info !

maetl commented 7 months ago

Merci! Confirmed working in the typescript project where I first noticed the issue.

I’ll ask additional questions in a separate issue thread.