Skip to content

Commit

Permalink
Fixed typescript props bug and added typescript compile to lint process
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano-formidable committed Feb 6, 2020
1 parent b1ec35a commit b916476
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ module.exports = {
stories: "eslint --color stories",
storybook: "eslint --color --no-ignore .storybook/config.js",
test: "eslint --color test",
ts: "tsc --project tsconfig.json --noEmit",
default: npsUtils.series.nps(
"lint.test",
"lint.stories",
"lint.storybook",
"lint.demo",
"lint.src"
"lint.src",
"lint.ts"
)
},
format: {
Expand Down
2 changes: 2 additions & 0 deletions packages/victory-chart/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import * as React from "react";
import {
CategoryPropType,
EventPropTypeInterface,
DomainPropType,
DomainPaddingPropType,
Expand All @@ -20,6 +21,7 @@ import {
} from "victory-core";

export interface VictoryChartProps extends VictoryCommonProps {
categories?: CategoryPropType;
domain?: DomainPropType;
domainPadding?: DomainPaddingPropType;
events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
Expand Down
1 change: 0 additions & 1 deletion packages/victory-core/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ export type ColorScalePropType =

export interface VictoryCommonProps {
animate?: boolean | AnimatePropTypeInterface;
categories?: string | { x?: string[]; y?: string[] };
name?: string;
height?: number;
horizontal?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
}
},
"include": [
"**/*.ts",
"**/*.tsx"
"**/src/*",
"demo/ts/*"
],
"exclude": [
"node_modules",
Expand Down

0 comments on commit b916476

Please sign in to comment.