@typespec/rest 0.65.0-dev.0 → 0.65.0-dev.2

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.
Files changed (2) hide show
  1. package/lib/resource.tsp +2 -3
  2. package/package.json +7 -7
package/lib/resource.tsp CHANGED
@@ -224,18 +224,17 @@ interface ResourceDelete<Resource extends {}, Error> {
224
224
  /**
225
225
  * Structure for a paging response using `value` and `nextLink` to represent pagination.
226
226
  *
227
- * This only provides the model structure and not actual pagination support. See
228
- * https://github.com/microsoft/typespec/issues/705 for general paging support.
229
- *
230
227
  * @template Resource The resource type of the collection.
231
228
  */
232
229
  @doc("Paged response of {name} items", Resource)
233
230
  @friendlyName("{name}CollectionWithNextLink", Resource)
234
231
  model CollectionWithNextLink<Resource extends {}> {
235
232
  @doc("The items on this page")
233
+ @pageItems
236
234
  value: Resource[];
237
235
 
238
236
  @doc("The link to the next page of items")
237
+ @nextLink
239
238
  nextLink?: ResourceLocation<Resource>;
240
239
  }
241
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/rest",
3
- "version": "0.65.0-dev.0",
3
+ "version": "0.65.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec REST protocol binding",
6
6
  "homepage": "https://typespec.io",
@@ -43,16 +43,16 @@
43
43
  "@typespec/http": "~0.64.0 || >=0.65.0-dev <0.65.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/node": "~22.7.9",
46
+ "@types/node": "~22.10.7",
47
47
  "@typespec/compiler": "~0.64.0 || >=0.65.0-dev <0.65.0",
48
48
  "@typespec/http": "~0.64.0 || >=0.65.0-dev <0.65.0",
49
49
  "@typespec/library-linter": "~0.64.0 || >=0.65.0-dev <0.65.0",
50
- "@vitest/coverage-v8": "^2.1.5",
51
- "@vitest/ui": "^2.1.2",
52
- "c8": "^10.1.2",
50
+ "@vitest/coverage-v8": "^3.0.3",
51
+ "@vitest/ui": "^3.0.3",
52
+ "c8": "^10.1.3",
53
53
  "rimraf": "~6.0.1",
54
- "typescript": "~5.6.3",
55
- "vitest": "^2.1.5",
54
+ "typescript": "~5.7.3",
55
+ "vitest": "^3.0.3",
56
56
  "@typespec/tspd": "~0.46.0"
57
57
  },
58
58
  "dependencies": {},