Closed danwetherald closed 2 years ago
Just came up with this issue myself. Better typescript support would be greatly appreciated indeed.
I have found that its "working" without doing any of the documented path hacks.
I do plan on building a typescript plugin for bree that will allow you to run .ts files, as well as, improving the declaration file and moving it to be shipped with the package.
the path hacks are primarily for use when compiling with something that changes the file system structure.
Please see @breejs/ts-worker! Send feature requests and bug fixes there! I will work on getting type declarations in package soon.
The 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.
This is in particular makes no sense, what is
paths
, where isjobPath
coming from, are you actually writing this ternary for every job?