Skip to content

Commit

Permalink
Spelling (#616)
Browse files Browse the repository at this point in the history
* spelling: parameter

Signed-off-by: Josh Soref <[email protected]>

* spelling: special

Signed-off-by: Josh Soref <[email protected]>

---------

Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref committed Mar 4, 2024
1 parent 690c13f commit f6854f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/update-endpoints/templates/endpoints.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
type ExtractParameters<T> = "parameters" extends keyof T
? UnionToIntersection<
{
// query paramter might be optional
// query parameter might be optional
// https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
[K in keyof T["parameters"]]-?: T["parameters"][K];
}[keyof T["parameters"]]
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/typescript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function run() {
function toOpenApiUrl(endpoint) {
return (
endpoint.url
// stecial case for "Upload a release asset": remove ":origin" prefix
// special case for "Upload a release asset": remove ":origin" prefix
.replace(/^\{origin\}/, "")
// remove query parameters
.replace(/\{?\?.*$/, "")
Expand Down
2 changes: 1 addition & 1 deletion src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
type ExtractParameters<T> = "parameters" extends keyof T
? UnionToIntersection<
{
// query paramter might be optional
// query parameter might be optional
// https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
[K in keyof T["parameters"]]-?: T["parameters"][K];
}[keyof T["parameters"]]
Expand Down

0 comments on commit f6854f4

Please sign in to comment.