Module "api-helper/project/GitHubLazyProjectLoader"
Functions
fileContent
- fileContent(token: string, rr: GitHubRepoRef, path: string): Promise<string | undefined>
-
Parameters
-
token: string
-
rr: GitHubRepoRef
-
path: string
Returns Promise<string | undefined>
filePromise
- filePromise(token: string, rr: GitHubRepoRef, path: string): Promise<HttpResponse<{ content: string }>>
-
Parameters
-
token: string
-
rr: GitHubRepoRef
-
path: string
Returns Promise<HttpResponse<{ content: string }>>
makeQueryablePromise
-
Type parameters
Parameters
Based on https://ourcodeworld.com/articles/read/317/how-to-check-if-a-javascript-promise-has-been-fulfilled-rejected-or-resolved This function allow you to modify a JS Promise by adding some status properties. Based on: http://stackoverflow.com/questions/21485545/is-there-a-way-to-tell-if-an-es6-promise-is-fulfilled-rejected-resolved But modified according to the specs of promises : https://promisesaplus.com/