File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
20
20
type ExtractParameters<T> = "parameters" extends keyof T
21
21
? UnionToIntersection<
22
22
{
23
- // query paramter might be optional
23
+ // query parameter might be optional
24
24
// https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
25
25
[K in keyof T["parameters"]]-?: T["parameters"][K];
26
26
}[keyof T["parameters"]]
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ async function run() {
72
72
function toOpenApiUrl ( endpoint ) {
73
73
return (
74
74
endpoint . url
75
- // stecial case for "Upload a release asset": remove ":origin" prefix
75
+ // special case for "Upload a release asset": remove ":origin" prefix
76
76
. replace ( / ^ \{ o r i g i n \} / , "" )
77
77
// remove query parameters
78
78
. replace ( / \{ ? \? .* $ / , "" )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
20
20
type ExtractParameters < T > = "parameters" extends keyof T
21
21
? UnionToIntersection <
22
22
{
23
- // query paramter might be optional
23
+ // query parameter might be optional
24
24
// https://github.com/octokit/types.ts/pull/555#issuecomment-1585105522
25
25
[ K in keyof T [ "parameters" ] ] -?: T [ "parameters" ] [ K ] ;
26
26
} [ keyof T [ "parameters" ] ]
You can’t perform that action at this time.
0 commit comments