microsoft / microsoft/typespec

[Bug]: TypeScript Emitter Framework shouldn't place additionalProperties on record types

Open
#8,988 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.