Skip to content

Commit f6854f4

Browse files
authored
Spelling (#616)
* 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]>
1 parent 690c13f commit f6854f4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/update-endpoints/templates/endpoints.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
2020
type ExtractParameters<T> = "parameters" extends keyof T
2121
? UnionToIntersection<
2222
{
23-
// query paramter might be optional
23+
// query parameter might be optional
2424
// https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
2525
[K in keyof T["parameters"]]-?: T["parameters"][K];
2626
}[keyof T["parameters"]]

scripts/update-endpoints/typescript.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function run() {
7272
function toOpenApiUrl(endpoint) {
7373
return (
7474
endpoint.url
75-
// stecial case for "Upload a release asset": remove ":origin" prefix
75+
// special case for "Upload a release asset": remove ":origin" prefix
7676
.replace(/^\{origin\}/, "")
7777
// remove query parameters
7878
.replace(/\{?\?.*$/, "")

src/generated/Endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
2020
type ExtractParameters<T> = "parameters" extends keyof T
2121
? UnionToIntersection<
2222
{
23-
// query paramter might be optional
23+
// query parameter might be optional
2424
// https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
2525
[K in keyof T["parameters"]]-?: T["parameters"][K];
2626
}[keyof T["parameters"]]

0 commit comments

Comments
 (0)