-
Notifications
You must be signed in to change notification settings - Fork 4
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
Property 'request' of exported class expression may not be private or protected.ts(4094) #15
Comments
Oh, also could you paste the contents of your tsconfig file? According to this issue, it might be related to having "declaration emit enabled" in your config.
|
My source code is available here {
"compilerOptions": {
"lib": ["ESNext"],
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"types": [
"bun-types" // add Bun global
]
}
}
|
What's strange is that the code compiles and runs without errors or warnings, it's just VS code complaining about types |
I fixed it Source code https://github.com/svnty/nbit/blob/main/packages/core/src/core/CustomRequest.ts |
What am I doing wrong?
The text was updated successfully, but these errors were encountered: