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

Enable Type Checking for Custom File Extensions #60632

Open
6 tasks done
nkappler opened this issue Nov 28, 2024 · 0 comments
Open
6 tasks done

Enable Type Checking for Custom File Extensions #60632

nkappler opened this issue Nov 28, 2024 · 0 comments

Comments

@nkappler
Copy link

πŸ” Search Terms

"xsjs", "xsjslib", "hana", "file extensions"

βœ… Viability Checklist

⭐ Suggestion

Enhance TypeScript's tsconfig.json to support type checking for files with unsupported extensions, such as "/*.xsjs" and "/*.xsjslib", when specified explicitly in the "include" config option

πŸ“ƒ Motivating Example

Support for SAP HANA server-side javascript and other javascript-based languages using custom file extensions

πŸ’» Use Cases

We are using TypeScript to check our SAP HANA server-side javascript files (.xsjs) and library files(xsjslib).
To do so, we currently need to add at least two top-comments in each file:

///<reference path"./pathto/config.xsjs" />
//@ts-check

In the config.xsjs we store all other triple-slash directives (like lib=es2016) to configure the typescript project.

It is really great that there's a way to enable type-checking on non-standard file extensions (at least in VSCode), but it would be great if you'd be able to configure an entire project which includes non-standard file extensions.

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

No branches or pull requests

1 participant