-
Notifications
You must be signed in to change notification settings - Fork 17
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
[Request/Question] TypeScript definitions #23
Comments
I might add Please remind me in a few days :D |
I've started this in a PR #24 |
I merged the PR that adds type definitions and released |
Thanks ! |
Hi @Raynos, I've installed version 10.3.0 but my IDE (WebStorm) is still complaining about not finding definitions (TS7016). Thanks, Regards. |
Can you share the tsconfig.json for your project ? |
Types are provided by typescript btw. Tsdocstandard is just a linter that makes it easier to add jsdoc to a js library and write type definitions. |
@Raynos sure, see below. I use typescript 3.8.3 and also a minimal configuration of typescript-eslint {
"compilerOptions": {
"target": "ES2019",
"module": "commonjs",
"sourceMap": true,
"outDir": "./build",
"strict": true,
"noImplicitAny": true,
"alwaysStrict": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"baseUrl": "./src",
"paths": {
"@i/*": ["i/*"],
"@have/*": ["have/*"],
"@some/*": ["some/*"],
"@modules/*": ["modules/*"],
"@alias/*": ["alias/*"]
},
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
]
} |
It's quite frustrating that typescript does not type check the implementation of I tried your tsconfig and added "include": [
"src/**/*",
"node_modules/error"
], Basically telling typescript that node_modules/error exists and it started type checking properly. However now i have |
There's another important property in tsconfig.json
|
Looks like another user found a similar workaround ( microsoft/TypeScript#33136 (comment) ) |
Hi, Sorry for the delay. |
Hi,
Could you provide typescript definitions for your package?
Unfortunately I didn't found community definitions (on DefinitelyTyped/DefinitelyTyped), and I'm not enough skilled to create one (I can try but it would take time :x).
Thanks,
Regards.
The text was updated successfully, but these errors were encountered: