File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ const url = `/repos/mpppk/typed-api-spec/topics?page=1`;
5757const fetchT = fetch as FetchT <typeof GITHUB_API_ORIGIN , Spec >;
5858const response = await fetchT (` ${GITHUB_API_ORIGIN }${url } ` );
5959if (! 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
6565const { names } = await response .json ()
6666console .log (names ); // => ["api-spec", "fetch", "typescript"]
6767```
You can’t perform that action at this time.
0 commit comments