This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch example API to from GitHub to Typicode JSON example api
- Loading branch information
1 parent
3a02d7d
commit 5855eb2
Showing
4 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { GeneralApiProblem } from "./api-problem" | ||
|
||
export interface Repo { | ||
export interface User { | ||
id: number | ||
name: string | ||
owner: string | ||
} | ||
|
||
export type GetRepoResult = { kind: "ok"; repo: Repo } | GeneralApiProblem | ||
export type GetUsersResult = { kind: "ok"; users: User[] } | GeneralApiProblem | ||
export type GetUserResult = { kind: "ok"; user: User } | GeneralApiProblem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters