-
Notifications
You must be signed in to change notification settings - Fork 87
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
Unused generic type causing compilation error #511
Comments
Thank you for reporting this bug. Can you share link to the Angular project or the strict config as I can see the bug for myself? |
It's a proprietary project which I cannot share, but you can try it on a minimum project without angular too: package.json {
"name": "rambda-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^3.9.7"
},
"dependencies": {
"rambda": "^5.9.0"
}
} tsconfig.json {
"compilerOptions": {
"noUnusedLocals": true,
"noUnusedParameters": true
},
"files": ["test.ts"]
} test.ts import { defaultTo } from 'rambda';
console.log(defaultTo('foo', undefined)); build it with: |
Thank you - that is sufficient info. I managed to reproduce it and I opened issue with |
So |
I am closing this issue as the fix is published with version |
I'm trying to use a newer version of Rambda with a strict ts-config in an angular project and I've got this compilation error:
Had to go back to version 5.5
The text was updated successfully, but these errors were encountered: