Skip to content

Commit

Permalink
chore(chart/validation): run prettier (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Sep 4, 2023
1 parent e99cb18 commit 48b4f09
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
18 changes: 9 additions & 9 deletions src/modules/chart.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ describe("chart", () => {

it("passes validation if some results are null", async () => {
await yf.chart(
"WSU.DE",
{
period1: "2023-08-04", // This was yielding a FailedYahooValidationError since
period2: "2023-08-09", // there are no results on the 2023-08-07
return: "object", // native Yahoo return format, first validation step.
},
{
devel: `chart-WSU.DE-2023-08-04-to-2023-08-09.json`,
}
"WSU.DE",
{
period1: "2023-08-04", // This was yielding a FailedYahooValidationError since
period2: "2023-08-09", // there are no results on the 2023-08-07
return: "object", // native Yahoo return format, first validation step.
},
{
devel: `chart-WSU.DE-2023-08-04-to-2023-08-09.json`,
}
);
});

Expand Down
24 changes: 12 additions & 12 deletions src/modules/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export interface ChartResultArray {
export interface ChartResultArrayQuote {
[key: string]: any;
date: Date;
high: number|null;
low: number|null;
open: number|null;
close: number|null;
volume: number|null;
adjclose?: number|null;
high: number | null;
low: number | null;
open: number | null;
close: number | null;
volume: number | null;
adjclose?: number | null;
}

export interface ChartMeta {
Expand Down Expand Up @@ -117,16 +117,16 @@ export interface ChartIndicatorsObject {

export interface ChartIndicatorQuote {
[key: string]: any;
high: Array<number|null>;
low: Array<number|null>;
open: Array<number|null>;
close: Array<number|null>;
volume: Array<number|null>;
high: Array<number | null>;
low: Array<number | null>;
open: Array<number | null>;
close: Array<number | null>;
volume: Array<number | null>;
}

export interface ChartIndicatorAdjclose {
[key: string]: any;
adjclose?: Array<number|null>; // Missing in e.g. "APS.AX"
adjclose?: Array<number | null>; // Missing in e.g. "APS.AX"
}

export interface ChartOptions {
Expand Down

0 comments on commit 48b4f09

Please sign in to comment.