microsoft / microsoft/typespec
A better way to ask "is this type an instantiation of that template"
Open
design:needed
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
Right now, perhaps the best approach to this is to check the instantiated type's name and namespace in hopes that nothing else happens to have that combo. A more reliable check would be welcome. A reference on the instantiated type to its template type is probably an easy win, but we would also need an easy way to get a reference to the uninstantiated template type since `resolveTypeReference` won't allow you to reference uninstantiated templates.
Contributor guide
Assessment
This issue has not been assessed yet.