(id: number)
| 7 | } |
| 8 | |
| 9 | export const getPostById = async (id: number): Promise<Post> => { |
| 10 | const response = await fetch( |
| 11 | `https://jsonplaceholder.typicode.com/posts/${id}`, |
| 12 | ) |
| 13 | const data = (await response.json()) as Post |
| 14 | return data |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected