Alfonsus Ardani
alfonsus.bsky.social
Alfonsus Ardani
@alfonsus.bsky.social
Product Designer / Engineer | Gamer
You can also do this
December 4, 2024 at 11:24 AM
Iam
November 27, 2024 at 12:55 AM
Making a block breaking game with React? \s
November 26, 2024 at 1:15 AM
Then imo it should be

GitHub(
fetcher: (req: Request) => Promise<Response>,
clientId,
clientSecret
)

instead of passing an object for the first parameter
November 23, 2024 at 3:39 PM
I think the fetch API is pretty standard and justify not having to dep inject the fetch everytime. But it is still a great DX to have it override the built in fetcher.

interface options: {
fetch?(request: Request): Promise<Response>
}
const gitHub = new GitHub(clientId, clientSecret, { fetch })
November 23, 2024 at 12:33 PM
They are not that hard if you think about it
November 23, 2024 at 10:26 AM