Closed privatenumber closed 3 years ago
Closes https://github.com/privatenumber/tasuku/issues/1
This enables using types like:
import task from 'tasuku' const doSomething: task.TaskFunction = (api) => { // ... } // alternatively: function doSomething(api: task.TaskInnerApi) { // ... }
Note, the types are exported as properties of the default export task, because this package is current CJS. I considered adding a ESM/CJS version with a discrepancy in exports, but TS currently doesn't support export maps.
task
:tada: This PR is included in version 1.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Closes https://github.com/privatenumber/tasuku/issues/1
This enables using types like:
Note, the types are exported as properties of the default export
task
, because this package is current CJS. I considered adding a ESM/CJS version with a discrepancy in exports, but TS currently doesn't support export maps.