You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/changes/@typespec/compiler/fix-array-assignable-to-object_2023-04-11-18-47.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
},
8
8
{
9
9
"packageName": "@typespec/compiler",
10
-
"comment": "**DEPRECATION** `object` is deprecated. Alternative is to use `{}` for an empty model, `Record<unknown>` for a record with unknown propertie types, `unknown[]` for an array.",
10
+
"comment": "**DEPRECATION** `object` is deprecated. Alternative is to use `{}` for an empty model, `Record<unknown>` for a record with unknown property types, `unknown[]` for an array.",
Copy file name to clipboardExpand all lines: packages/compiler/lib/lib.tsp
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -124,18 +124,18 @@ scalar boolean;
124
124
* Represent a model
125
125
*/
126
126
// Deprecated June 2023 sprint
127
-
@deprecated("object is deprecated. Please use {} for an empty model, `Record<unknown>` for a record with unknown propertie types, `unknown[]` for an array.")
127
+
@deprecated("object is deprecated. Please use {} for an empty model, `Record<unknown>` for a record with unknown property types, `unknown[]` for an array.")
128
128
modelobject {}
129
129
130
130
/**
131
-
* Array model type, equivalent to `T[]`
131
+
* @devArray model type, equivalent to `T[]`
132
132
* @templateT The type of the array elements
133
133
*/
134
134
@indexer(integer, T)
135
135
modelArray<T> {}
136
136
137
137
/**
138
-
* Model with string properties where all the properties have type `T`
138
+
* @devModel with string properties where all the properties have type `T`
0 commit comments