[tcgc] refine usage in tcgc
Open
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
Assessment
This issue has not been assessed yet.