Is there anyway to manually refine the type that t...
# javascript
s
Is there anyway to manually refine the type that the typescript declaration generator emits? For instance, I am working on a multi platform template engine and would like to emit type declarations for the input in typescript as
T extends string | Record<string, T>
which provides a little more information than just, what in Kotlin, has to be a
Map<String, Any>
t
You can use Kotlin Record
In most cases
ReadonlyRecord
(also declared in
kotlin-wrappers
) must be used instead.