-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix(css): make sass types work with sass-embedded #18459
fix(css): make sass types work with sass-embedded #18459
Conversation
"packageExtensions": { | ||
"sass-embedded": { | ||
"peerDependencies": { | ||
"source-map-js": "*" | ||
}, | ||
"peerDependenciesMeta": { | ||
"source-map-js": { | ||
"optional": true | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed to make the type-check happy.
// https://github.com/type-challenges/type-challenges/issues/29285 | ||
type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, the mosted 👍 ed answer (type-challenges/type-challenges#232) didn't work in our case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for polishing up the types!
Description
Built on top of #18458The types did not work when
sass-embedded
was installed instead ofsass
.