Closed
Description
Example
const base = new Base()
// TS complains as expected
base.unknown
const BaseWithDefaults = Base.defaults({})
const baseWithDefaults = new BaseWithDefaults
// TS does _not_ complain, `.unknown` is typed as `any`, and it shouldn't
baseWithDefaults.unknown
The problems are these two lines from the resulting .d.ts
file
I don't quite understand whey they are coming from, and how I can change them to at least [x: string]: unknown
.
Any idea?
Here is a playground with the full source code