You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the code will not compile because of type mismatches. However, if you make some changes to make the code compilable (e.g. using any type) and then run it, it will work fine.
What happened
When using the NPM Module and Typescript to write a build script, the following code compiles successfully. It passes TypeScript's type system.
However, when you run the code, you will see an error:
Expect
After looking at the source code, I found that the correct code should be:
Unfortunately, the code will not compile because of type mismatches. However, if you make some changes to make the code compilable (e.g. using
any
type) and then run it, it will work fine.How to fix it
style-dictionary/types/Config.d.ts
Line 27 in 3b520d2
I think we should change this line of code to:
The text was updated successfully, but these errors were encountered: