microsoft / microsoft/typespec
[Bug]: TypeScript Emitter Framework shouldn't place additionalProperties on record types
Open
bug
emitter-framework
triaged:core
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
This feels like an emitter-specific choice for how to represent models which extend records to me. If I want to emit an interface that represents what this looks like on the wire, I... can't?
That aside, it also presently emits just a plain record as an object type with a single property "additionalProperties" which also seems wrong - something like `tags: Record` should probably emit as `tags: { [string]: string }` or even `tags: Record` since there are no named properties to contend with.
Contributor guide
Assessment
This issue has not been assessed yet.