[@types/webpack] loader options are not typed #53903
Unanswered
reverofevil
asked this question in
Issues with a @types package
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've made a feature request to TypeScript to add
typeof import()
by literal string type. Currently it's awaiting feedback, and I thought it would be wise to ask authors of typings it might mostly affect to give it.As I understand,
webpack
lacks typing for loaders, because loaders get imported dynamically, and there is no way to put types there without this new language feature. Here's how it could look like:Live version.
Of course, this is just as good as I managed to throw it in in an hour, and generally typing to get loaders done would look somewhat differently.
Do you think this language feature would help typing
webpack
? Please, leave any feedback on the mentioned issue. Probably, it would make sense to keep this issue open until it gets implemented.@tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @dennispg
@christophehurpeau @ZSkycat @johnnyreilly @rwaskiewicz @kuehlein @grgur @rubenspgcavalcante
@andersk @ofhouse @danielthank @sasurau4 @dionshihk @peterblazejewicz @spamshaker
Beta Was this translation helpful? Give feedback.
All reactions