• Optional
abortSignal: AbortSignal
• Optional
branch: string
Default
"main"
• Optional
credentials: Credentials
• Optional
description: string
• Optional
fetch: (input
: URL
| RequestInfo
, init?
: RequestInit
) => Promise
\<Response
>(input
: string
| URL
| Request
, init?
: RequestInit
) => Promise
\<Response
>
Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
▸ (input
, init?
): Promise
\<Response
>
Name | Type |
---|---|
input | URL | RequestInfo |
init? | RequestInit |
Promise
\<Response
>
▸ (input
, init?
): Promise
\<Response
>
Name | Type |
---|---|
input | string | URL | Request |
init? | RequestInit |
Promise
\<Response
>
• Optional
hubUrl: string
• Optional
isPullRequest: boolean
• operations: CommitOperation
[]
• Optional
parentCommit: string
Parent commit. Optional
• repo: RepoDesignation
• title: string
• Optional
useWebWorkers: boolean
| { minSize?
: number
; poolSize?
: number
}
Whether to use web workers to compute SHA256 hashes.
We load hash-wasm from a CDN inside the web worker. Not sure how to do otherwise and still have a “clean” bundle.