-
Notifications
You must be signed in to change notification settings - Fork 12
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
Compilation in typescript project with 'noImplicitAny: true' fails because of implict any in tinyld #9
Comments
that's an interesting one, I setup a more strict TS config
and |
I created a brand new project with It seems to be caused by the fact I directly point at typescript files and not use dedicated declaration files. |
I just published a new version on npm It should solve your problem and make the usage of the lib easier |
thanks so much, I suspect it's related to the typescript version. I try the latest tinyld version and report back here. |
The latest version works. my tsconfig: {
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"target": "es6",
"declaration": true,
"declarationMap": true,
"lib": ["es6", "dom"],
"noImplicitAny": true,
"resolveJsonModule": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"paths": {
"*": [
"node_modules/*",
"src/types/*"
]
}
},
"include": [
"src/**/*",
],
"exclude": [
"src/**/*.spec.ts"
]
} |
Thanks for your time and I'm really sorry for the different problems you run into 🤕 I will try to improve the flow and the documentation to make sure contributing to the project become a better process. |
what are you talking about, |
Using tinlyd: 1.2.2
Steps:
Expected
Actual
node_modules/tinyld/src/core.ts:59:18 - error TS7018: Object literal's property 'only' implicitly has an 'any[]' type. 59 const data = { only: [], verbose: false } ~~~~~~~~
I will create a PR to address this.
The text was updated successfully, but these errors were encountered: