Add Blob to RepositoryFiles.showRaw response type (#3418)

This commit is contained in:
Martin Dreher 2023-10-03 00:20:29 +02:00 committed by GitHub
parent 8cb5479540
commit b2df614304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,8 @@ export class RepositoryFiles<C extends boolean = false> extends BaseResource<C>
filePath: string,
ref: string,
options?: { lfs?: boolean } & Sudo & ShowExpanded<E>,
): Promise<GitlabAPIResponse<string, C, E, void>> {
return RequestHelper.get<string>()(
): Promise<GitlabAPIResponse<string | Blob, C, E, void>> {
return RequestHelper.get<string | Blob>()(
this,
endpoint`projects/${projectId}/repository/files/${filePath}/raw`,
{