GitHub(
fetcher: (req: Request) => Promise<Response>,
clientId,
clientSecret
)
instead of passing an object for the first parameter
GitHub(
fetcher: (req: Request) => Promise<Response>,
clientId,
clientSecret
)
instead of passing an object for the first parameter
interface options: {
fetch?(request: Request): Promise<Response>
}
const gitHub = new GitHub(clientId, clientSecret, { fetch })
interface options: {
fetch?(request: Request): Promise<Response>
}
const gitHub = new GitHub(clientId, clientSecret, { fetch })