Why Nostr? What is Njump?
2024-08-19 12:07:30

Peter Kröner on Nostr: So if you write "import type ..." you get a namespace, not a type (obviously). If the ...

So if you write "import type ..." you get a namespace, not a type (obviously). If the contents of this namespace needs to be globally available for declaration merging, you need to transform the namespace into a type to then have your interface extend it. And then tell eslint to shut up about the obviously non-empty interface.

This is fine #TypeScript

Author Public Key
npub1ws5duzulm09pmp0prwns0z7sr49hzzsq7zs6szdqktv3l4flckmq8k78jx