Skip to content

Commit

Permalink
feat: specify download return type (PL-000)
Browse files Browse the repository at this point in the history
  • Loading branch information
trs committed Nov 14, 2023
1 parent c51d999 commit 342a20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/download.resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import https from "node:https";
import { ChargebeeResource } from "../chargebee-resource.class";

export class DownloadResource extends ChargebeeResource {
public readonly json = (url: string) =>
new Promise((resolve, reject) => {
public readonly json = <TResult = unknown>(url: string) =>
new Promise<TResult>((resolve, reject) => {
https
.get(url, (res) => {
let body = "";
Expand Down

0 comments on commit 342a20d

Please sign in to comment.