Skip to content

Commit

Permalink
Fixed build for a yarn package manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastik committed Dec 4, 2023
1 parent 89df7a9 commit 27f7d5c
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion projects/some-charts-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "some-charts",
"version": "0.0.369-beta.19",
"version": "0.0.369-beta.20",
"scripts": {
"build-dev": "webpack --env=development && tsc --declaration --project tsconfig.lib.json",
"build": "webpack --env=production && tsc --declaration --project tsconfig.lib.json",
Expand Down
1 change: 0 additions & 1 deletion projects/some-charts-lib/src/chart/axis/axis-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {Chart} from "../chart";
import {MajorTicksGenerator, MinorTicksGenerator, Tick} from "./ticks";
import {DataTransformation, NumericPoint, NumericRange, Range, Size} from '../../geometry';
import zipWith from 'lodash-es/zipWith';
import merge from "lodash-es/merge";
import {AxisOrientation} from "./axis-orientation";
import {LabelsLayout} from "./labels-layout";
import {LayerId} from "../../layer-id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import {TimeUnit} from "../../../time-unit";
import * as moment from "moment";
import { MinorTicksGenerator } from "../../../../minor-ticks-generator";
import { Tick } from "../../../../tick";
import {LabeledTick} from "../../../../labeled-tick";
import {MinorDateTick} from "../../../minor-date-tick";
import {MinorLvl1DaysTicksGenerator} from "./minor-lvl1-days-ticks-generator";

export abstract class MinorLvl1TimeUnitTicksGenerator implements MinorTicksGenerator<Date> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import {TimeUnit} from "../../../time-unit";
import * as moment from "moment";
import { MinorTicksGenerator } from "../../../../minor-ticks-generator";
import { Tick } from "../../../../tick";
import {LabeledTick} from "../../../../labeled-tick";
import {MinorDateTick} from "../../../minor-date-tick";
import {MinorLvl2DaysTicksGenerator} from "./minor-lvl2-days-ticks-generator";

export abstract class MinorLvl2TimeUnitTicksGenerator implements MinorTicksGenerator<Date> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Tick} from "./tick";

export class LabeledTick<T = number> extends Tick<T>{
export class LabeledTick<T extends Object = number> extends Tick<T>{
label: string;

constructor(value: T, length: number, index: number, label: string) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Range} from "../../../index";
import { Tick } from "./tick";

export abstract class MajorTicksGenerator<T> {
export abstract class MajorTicksGenerator<T extends Object > {

protected tickHeight: number;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Range} from "../../../index";
import { Tick } from "./tick";

export interface MinorTicksGenerator<T> {
export interface MinorTicksGenerator<T extends Object> {
/**
* Generates minor ticks in specified range.
* @param {Range} range - data range.
Expand Down

0 comments on commit 27f7d5c

Please sign in to comment.