Skip to content

Commit

Permalink
promote on test and types
Browse files Browse the repository at this point in the history
  • Loading branch information
Miniast committed Aug 1, 2024
1 parent b910dcb commit 672df3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { GotUrl } from "got";
import { HttpProxyAgent, HttpsProxyAgent } from "hpagent";
import http2Wrapper from "http2-wrapper";
import { cleanObject, getType, isValidUrl } from "./lib/utils.js";
Expand Down Expand Up @@ -69,7 +70,7 @@ export const getValidOptions = (options: RequestConfig): RequestOptions => {
throw new TypeError(`Invalid options: ${JSON.stringify(options)}`);
};

export const alignOptions = (options: RequestOptions): any => {
export const alignOptions = (options: RequestOptions): GotUrl => {
const gotOptions = {
...options,
url: options.url ?? options.uri,
Expand Down
2 changes: 1 addition & 1 deletion src/types/crawler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ export type RequestOptions = {

export type RequestConfig = string | RequestOptions | RequestOptions[];
export type CrawlerOptions = Partial<GlobalOnlyOptions> & RequestOptions;
export type CrawlerResponse = any
export type CrawlerResponse = any;

0 comments on commit 672df3b

Please sign in to comment.