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

Remove export assignment from ink.d.ts #1049

Merged
merged 3 commits into from Apr 4, 2024
Merged

Remove export assignment from ink.d.ts #1049

merged 3 commits into from Apr 4, 2024

Conversation

maetl
Copy link
Contributor

@maetl maetl commented Mar 31, 2024

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

  • The new code additions passed the tests (npm test).
  • The linter ran and found no issues (npm run-script lint).

maetl and others added 3 commits March 31, 2024 15:17
As described in y-lohse#959, there is an incompatibility between how this declaration file is structured and the expectations of TypeScript.

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.
```
These relative paths were expecting the file to be nested inside the /src directory, but it is in the project root directory.
@smwhr smwhr merged commit c691374 into y-lohse:master Apr 4, 2024
1 check passed
@smwhr
Copy link
Collaborator

smwhr commented Apr 4, 2024

Merged.

Ask away if you need guidance/info !

@maetl
Copy link
Contributor Author

maetl commented Apr 5, 2024

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

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

@maetl maetl deleted the patch-1 branch April 5, 2024 04:20
maetl added a commit to maetl/inkjs that referenced this pull request Apr 6, 2024
Fixes a problem introduced in y-lohse#1049 where the relative imports changed
to suit standalone references to these files on disk—but overlooked that
the tsconfig had `src` already mapped.
@maetl maetl mentioned this pull request Apr 6, 2024
2 tasks
maetl added a commit to maetl/inkjs that referenced this pull request Apr 6, 2024
Fixes a problem introduced in y-lohse#1049 where the relative imports changed
to suit standalone references to these files on disk—but overlooked that
the tsconfig had `src` already mapped.
maetl added a commit to maetl/inkjs that referenced this pull request Apr 6, 2024
Fixes a problem introduced in y-lohse#1049 where the relative imports changed
to suit standalone references to these files on disk—but overlooked that
the tsconfig had `src` already mapped.
maetl added a commit to maetl/inkjs that referenced this pull request Apr 6, 2024
Fixes a problem introduced in y-lohse#1049 where the relative imports changed
to suit standalone references to these files on disk—but overlooked that
the tsconfig had `src` already mapped.
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.

None yet

2 participants