node_modules/dinky.js/lib/Dinky.d.ts:47:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
47 class Dinky {
~~~~~
Found 1 error.
With these changes in place, the builds are successful and the type annotations/completions also work correctly (so the in-editor behavior hasn't changed).
TypeScript builds fail with the following error:
when using the following tsconfig:
I haven't tested with other configurations, but I feel like the reason it fails is that I have
strict
and/ordeclaration
set totrue
.As noted in https://github.com/octet-stream/dinky/issues/11#issuecomment-701648613, the
declare
modifier is missing from the following types:class Dinky
function dinky
class NetworkError
namespace responses
With these changes in place, the builds are successful and the type annotations/completions also work correctly (so the in-editor behavior hasn't changed).