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

Question: How to write userscript in TypeScript? #95

Open
wilx opened this issue Apr 9, 2023 · 1 comment
Open

Question: How to write userscript in TypeScript? #95

wilx opened this issue Apr 9, 2023 · 1 comment
Labels
good first issue Good for newcomers question Further information is requested

Comments

@wilx
Copy link

wilx commented Apr 9, 2023

Is it possible to write userscripts in TypeScript? Could you please provide an example project setup for this?

@momocow
Copy link
Owner

momocow commented Apr 9, 2023

Yes, it is.

Actually the TypeScript support is not directly provided by this plugin, but by webpack and ts-loader.

Here is a minimal example to build an userscript project written in TypeScript.

Run npm install and run npm run build to have a try. 😃

@momocow momocow added good first issue Good for newcomers question Further information is requested labels Apr 9, 2023
@momocow momocow pinned this issue Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants