Skip to content

Commit

Permalink
Add Scalar to TS TemplatedType type (microsoft#2929)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Feb 20, 2024
1 parent c676ae4 commit d53b30d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: fix
packages:
- "@typespec/compiler"
---

[API] Add `Scalar` to TS `TemplatedType` type
2 changes: 1 addition & 1 deletion packages/compiler/src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface DecoratedType {
/**
* Union of all the types that implement TemplatedTypeBase
*/
export type TemplatedType = Model | Operation | Interface | Union;
export type TemplatedType = Model | Operation | Interface | Union | Scalar;

export interface TypeMapper {
partial: boolean;
Expand Down

0 comments on commit d53b30d

Please sign in to comment.