From 1e2b2a093bd7a1152cebd6cb9745f26d76be3423 Mon Sep 17 00:00:00 2001 From: ssube Date: Sun, 4 Apr 2021 15:33:30 -0500 Subject: [PATCH] fix(remote): usage of internal gitbeaker types --- src/remote/gitlab.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/remote/gitlab.ts b/src/remote/gitlab.ts index e4a200f..95cbcc5 100644 --- a/src/remote/gitlab.ts +++ b/src/remote/gitlab.ts @@ -1,21 +1,20 @@ import { mustExist } from '@apextoaster/js-utils'; -import { GetResponse } from '@gitbeaker/core/dist/types/infrastructure/RequestHelper'; -import { Bundle } from '@gitbeaker/core/dist/types/infrastructure/Utils'; +import { BundleType } from '@gitbeaker/core/dist/types/infrastructure/Utils'; import { IssueNotes, Issues, Labels, Projects, ProjectsBundle } from '@gitbeaker/node'; import { CommentUpdate, IssueUpdate, LabelUpdate, ProjectQuery, Remote, RemoteOptions } from '.'; import { BaseRemote } from './base'; // gitbeaker exports the bundle types as const, breaking typeof -type RemoteBundle = InstanceType>; -export function unwrapResponse(resp: GetResponse): T { - return (resp as unknown) as T; +export function unwrapResponse(resp: unknown): T { + return resp as T; } /**