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

Allow .ts extension in imports/exports #2876

Open
fabianhjr opened this issue Oct 11, 2024 · 1 comment
Open

Allow .ts extension in imports/exports #2876

fabianhjr opened this issue Oct 11, 2024 · 1 comment

Comments

@fabianhjr
Copy link
Contributor

Feature suggestion

Eg, deno / bun allow and prefer something like

export { Parser0 } from "./parsers/Parser0.ts";
export { Parser } from "./parsers/Parser.ts";
export { ParserResult } from "./parsers/ParserResult.ts";

But AssemblyScript complains:

ERROR TS6054: File 'src/parsers/Parser0.ts.ts' not found.
   :
 1 │ export { Parser0 } from "./parsers/Parser0.ts";
   │                         ~~~~~~~~~~~~~~~~~~~~~~
   └─ in src/index.ts(1,25)

ERROR TS6054: File 'src/parsers/Parser.ts.ts' not found.
   :
 2 │ export { Parser } from "./parsers/Parser.ts";
   │                        ~~~~~~~~~~~~~~~~~~~~~
   └─ in src/index.ts(2,24)

ERROR TS6054: File 'src/parsers/ParserResult.ts.ts' not found.
   :
 3 │ export { ParserResult } from "./parsers/ParserResult.ts";
   │                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   └─ in src/index.ts(3,30)
@fabianhjr fabianhjr changed the title Allow .ts in imports Allow .ts extension in imports/exports Oct 11, 2024
@fabianhjr
Copy link
Contributor Author

Did an initial attempt but seems to be slightly more involved: #2875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant