Skip to content

Commit d5e3eb8

Browse files
fix build erroe
1 parent e148a84 commit d5e3eb8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/http/http-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { IRequestOptions } from "./../../dist/interfaces/generic.interface.d";
21
import * as https from "https";
32
import { ClientRequest } from "http";
43
import { IHttpClient } from "./http-service.interface";
54
import { ApplicationLogger } from "../logger/logger-service";
65
import { HTTP_VERBS, RequestHeader } from "../core/constants";
6+
import { IRequestOptions } from "../interfaces";
77
/**
88
* A custom HTTP client implementation that provides a set of methods for sending HTTP requests.
99
* This client supports GET, POST, PUT, and DELETE requests, and allows for optional request options and payload.

src/interfaces/generic.interface.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
import { RequestHeader } from "../core/constants";
2+
3+
export type HeadersType = {
4+
[key in keyof RequestHeader]: string;
5+
};
6+
7+
export interface IRequestOptions {
8+
hostname: string;
9+
path: string;
10+
method: string;
11+
headers?: any;
12+
jwtToken?: string;
13+
}
14+
115
import ts from "typescript";
216

317
export interface IFunctionInfo {

0 commit comments

Comments
 (0)