[feat] Better Typescript support / documentation
See original GitHub issueThe docs / examples on Typescript are very poor and hard to understand, would be nice if the examples were not half baked and had a full example on setup.
...(CRON_MODE === 'ts'
? {
path: typescript_worker,
worker: {
workerData: {
__filename: path.join(paths.jobs, `${jobPath}.ts`)
}
}
}
: {
path: path.join(paths.jobs, `${jobPath}.js`)
})
This is in particular makes no sense, what is paths
, where is jobPath
coming from, are you actually writing this ternary for every job?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
feat(types): added better typescript support using vue-tsc d.ts ...
Fixes #263 Proposed Changes Added d.ts automatic generation using vue-tsc for vue component, mixins and directives using npm run build:types Added better ......
Read more >JSDoc Reference - TypeScript: Documentation
JSDoc Reference. The list below outlines which constructs are currently supported when using JSDoc annotations to provide type information in JavaScript files.
Read more >Angular for Beginners Course [Full Front End Tutorial with ...
... of Typescript and then you will learn about important Angular concepts such as binding, dependency injection, forms, routing, and more.
Read more >@volar/typescript-faster | Yarn - Package Manager
TypeScript Language Service Completion API is slow when calculate auto-import. ... splitEditors setting (#2163); feat: support twoslash queries in .ts when ...
Read more >Node.js with TypeScript
TypeScript is a really powerful tool and opens a new world of possibilities in JavaScript projects. It makes our code more secure and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please see @breejs/ts-worker! Send feature requests and bug fixes there! I will work on getting type declarations in package soon.
Just came up with this issue myself. Better typescript support would be greatly appreciated indeed.