-
Notifications
You must be signed in to change notification settings - Fork 2
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 does this work? #20
Comments
Are this a framework for developing spices or an extension for Cinnamon itself? |
For the first question, yes if you transpile to JS. For the second question, this just enables development of spices using Typescript. More specifically it provides typescript declarations for libraries that are provided out of the box for spices in CJS under |
So, spices' devs could write the "frontend" in vanilla CJS while |
You don't need this library for vanilla (C)JS. You can also write an applet/extension in TS without it with a dummy declaration like this: declare global {
const imports: any;
} but obviously it has some drawbacks. So this library is only for providing declarations for that namespace for correct type-checking for Typescript. |
Does this enables spices to be written in TypeScript while being read by CJS as normal Javascript?
The text was updated successfully, but these errors were encountered: