-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
TS interfaces? #770
Comments
Sorry you want |
Feel free to submit a PR |
I use TS webpack config, and some wrappers to configure loaders. |
Okay - myself I use js for my webpack config. I'm happy to support others with different flows though. Why don't you fork, have a play and submit a PR. I'm guessing it's just a case of adding |
Heyo! I have the same problem. webpack.config.js // @ts-check
/**
* @type {Partial<import('ts-loader').LoaderOptions>}
*/
const tsLoaderOptionsRules = {
configFile: tsConfig,
transpileOnly: true
}
/**
* @type {(env:{production?:boolean})=>import('webpack').Configuration}
*/
const config = (env) => {
return {
module: {
rules: [
{
include: resolve(__dirname, 'src'),
test: /\.tsx?$/,
loader: 'ts-loader',
options: tsLoaderOptionsRules
}
]
},
} instead I would like to use definitions, which you already have in codebase, just need to be shipped as ambient types with your package. I'm definitely up to sending a PR, if you can point me in right direction. cheers ! |
So I think it's as simple as adding |
I'm on it |
Expected Behaviour
I wonder why this module doesn't export any TS interfaces (LoaderOptions).
Actual Behaviour
Just js code.
The text was updated successfully, but these errors were encountered: