Skip to content

Commit

Permalink
bro what am i doing
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethnym committed May 1, 2024
1 parent 311c945 commit e4cb0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type ApiError = "InternalError" | "NetworkError" | "ServerError" | "UnexpectedRe
const WeatherSchema = z.object({ ... })
type Weather = z.infer<typeof WeatherSchema>

function fetchWeather(): Promise<Result<Weather, ApiError>> {
async function fetchWeather(): Promise<Result<Weather, ApiError>> {
const res = await tryp(fetch("/api/weather"))
if (res.isErr()) {
return err("NetworkError")
Expand Down

0 comments on commit e4cb0b8

Please sign in to comment.