Skip to content

Commit ec98394

Browse files
committed
Fix typo
1 parent 53bcb08 commit ec98394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/02_getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ const url = `/repos/mpppk/typed-api-spec/topics?page=1`;
5757
const fetchT = fetch as FetchT<typeof GITHUB_API_ORIGIN, Spec>;
5858
const response = await fetchT(`${GITHUB_API_ORIGIN}${url}`);
5959
if (!response.ok) {
60-
// reponse.json() is typed as { message: string } because resnose is not ok
60+
// response.json() is typed as { message: string } because response is not ok
6161
const { message } = await response.json()
6262
return console.error(message);
6363
}
64-
// reponse.json() is typed as { names: string[] } because resnose is ok
64+
// response.json() is typed as { names: string[] } because response is ok
6565
const { names } = await response.json()
6666
console.log(names); // => ["api-spec", "fetch", "typescript"]
6767
```

0 commit comments

Comments
 (0)