Azure / Azure/typespec-azure

[tcgc] refine usage in tcgc

Open
#1,941 1 comment 0 reactions 1 assignee Claimed by @tadelesh View on GitHub
lib:tcgc
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

idea is from this [pr](https://github.com/Azure/typespec-azure/pull/1887).
we should separate tcgc's usage into two layers:
1. for first layer, we just keep input, output usage which is more native.
2. for second layer, we separate e.g. output to something like the following. It is for client specific output usage.
```
enum OutputUsage {
Normal,
LroInitial,
Error,
...
}
```
that will be a breaking change, but much extensible and we should make sure each layer orthogonal.
we need to figure out a good data structure to store multi-layer of usages. it must be easy to use.

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.