Skip to content

Commit

Permalink
chore: fix allowSyntheticDefaultImports define
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Aug 31, 2020
1 parent 4924321 commit c857dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 2 additions & 10 deletions src/hooks/useTreeData.ts
@@ -1,11 +1,6 @@
import * as React from 'react';
import warning from 'rc-util/lib/warning';
import {
DataNode,
InnerDataNode,
SimpleModeConfig,
RawValueType,
} from '../interface';
import { DataNode, InnerDataNode, SimpleModeConfig, RawValueType } from '../interface';
import { convertChildrenToData } from '../utils/legacyUtil';

const MAX_WARNING_TIMES = 10;
Expand Down Expand Up @@ -85,10 +80,7 @@ function formatTreeData(
);
}

warning(
!valueSet.has(value),
`Same \`value\` exist in the tree: ${value}`,
);
warning(!valueSet.has(value), `Same \`value\` exist in the tree: ${value}`);
valueSet.add(value);
}

Expand Down
6 changes: 1 addition & 5 deletions src/interface.ts
Expand Up @@ -14,11 +14,7 @@ export interface LabelValueType {
halfChecked?: boolean;
}

export type DefaultValueType =
| RawValueType
| RawValueType[]
| LabelValueType
| LabelValueType[];
export type DefaultValueType = RawValueType | RawValueType[] | LabelValueType | LabelValueType[];

export interface DataNode {
value?: RawValueType;
Expand Down

0 comments on commit c857dde

Please sign in to comment.