Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanBulmer committed Apr 7, 2024
1 parent 1e66d28 commit 47e994a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/comprehensive/src/routes/entity/[key]/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pathParam = new Parameter()
.required();
const queryParam = new Parameter(pathParam.doc()).name("queryKey").in("query");

const route = new Route<"key", "queryKey">()
const route = new Route<object, "key", "queryKey">()
.summary("Get entity by key.")
.description("Get an entity from the database with the given key.")
.tags("Entity")
Expand Down
2 changes: 1 addition & 1 deletion examples/comprehensive/src/routes/entity/[key]/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const pathParam = new Parameter()
.type("string")
.required();

const route = new Route<"key">()
const route = new Route<object, "key">()
.summary("Update entity by key.")
.description("Update an entity in the database with the given key.")
.tags("Entity")
Expand Down

0 comments on commit 47e994a

Please sign in to comment.