@typespec/compiler 1.8.0-dev.7 → 1.8.0-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/manifest.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export default {
2
- "version": "1.8.0-dev.7",
3
- "commit": "c565f6e7739c15a2461b54a0cdb809198646a848"
2
+ "version": "1.8.0-dev.8",
3
+ "commit": "004bbfb82c6580a2cb0447ccce371f2de0af1fce"
4
4
  };
@@ -109,6 +109,16 @@ scalar plainDate {
109
109
  * ```
110
110
  */
111
111
  init fromISO(value: string);
112
+
113
+ /**
114
+ * Create a plain date representing the current date.
115
+ * @example
116
+ *
117
+ * ```tsp
118
+ * const date = plainDate.now();
119
+ * ```
120
+ */
121
+ init now();
112
122
  }
113
123
 
114
124
  /**
@@ -124,6 +134,16 @@ scalar plainTime {
124
134
  * ```
125
135
  */
126
136
  init fromISO(value: string);
137
+
138
+ /**
139
+ * Create a plain time representing the current time.
140
+ * @example
141
+ *
142
+ * ```tsp
143
+ * const time = plainTime.now();
144
+ * ```
145
+ */
146
+ init now();
127
147
  }
128
148
 
129
149
  /**
@@ -139,6 +159,16 @@ scalar utcDateTime {
139
159
  * ```
140
160
  */
141
161
  init fromISO(value: string);
162
+
163
+ /**
164
+ * Create a date representing the current date and time in UTC.
165
+ * @example
166
+ *
167
+ * ```tsp
168
+ * const time = utcDateTime.now();
169
+ * ```
170
+ */
171
+ init now();
142
172
  }
143
173
 
144
174
  /**
@@ -154,6 +184,16 @@ scalar offsetDateTime {
154
184
  * ```
155
185
  */
156
186
  init fromISO(value: string);
187
+
188
+ /**
189
+ * Create a date representing the current date and time with offset.
190
+ * @example
191
+ *
192
+ * ```tsp
193
+ * const time = offsetDateTime.now();
194
+ * ```
195
+ */
196
+ init now();
157
197
  }
158
198
 
159
199
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/compiler",
3
- "version": "1.8.0-dev.7",
3
+ "version": "1.8.0-dev.8",
4
4
  "description": "TypeSpec Compiler Preview",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",