chore: update typescript@~2.9.1 (#10748)

This commit is contained in:
Junbin Huang 2018-06-02 20:12:09 +08:00 committed by GitHub
parent 30eacdfb1b
commit bbf5cb75c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 18 additions and 18 deletions

View File

@ -75,7 +75,7 @@ export default class Avatar extends React.Component<AvatarProps, AvatarState> {
render() {
const {
prefixCls, shape, size, src, icon, className, ...others,
prefixCls, shape, size, src, icon, className, ...others
} = this.props;
const sizeCls = classNames({

View File

@ -59,7 +59,7 @@ export default class Badge extends React.Component<BadgeProps, any> {
text,
offset,
title,
...restProps,
...restProps
} = this.props;
let displayCount = (count as number) > (overflowCount as number) ? `${overflowCount}+` : count;
const isZero = displayCount === '0' || displayCount === 0;

View File

@ -157,7 +157,7 @@ export default class Button extends React.Component<ButtonProps, any> {
render() {
const {
type, shape, size, className, htmlType, children, icon, prefixCls, ghost, ...others,
type, shape, size, className, htmlType, children, icon, prefixCls, ghost, ...others
} = this.props;
const { loading, clicked, hasTwoCNChar } = this.state;

View File

@ -134,7 +134,7 @@ export default class Card extends React.Component<CardProps, CardState> {
render() {
const {
prefixCls = 'ant-card', className, extra, bodyStyle = {}, noHovering, hoverable, title, loading,
bordered = true, type, cover, actions, tabList, children, activeTabKey, defaultActiveTabKey, ...others,
bordered = true, type, cover, actions, tabList, children, activeTabKey, defaultActiveTabKey, ...others
} = this.props;
const classString = classNames(prefixCls, className, {

View File

@ -339,7 +339,7 @@ export default class Cascader extends React.Component<CascaderProps, CascaderSta
const { props, state } = this;
const {
prefixCls, inputPrefixCls, children, placeholder, size, disabled,
className, style, allowClear, showSearch = false, ...otherProps,
className, style, allowClear, showSearch = false, ...otherProps
} = props;
const value = state.value;

View File

@ -79,7 +79,7 @@ export default class Checkbox extends React.Component<CheckboxProps, {}> {
style,
onMouseEnter,
onMouseLeave,
...restProps,
...restProps
} = props;
const { checkboxGroup } = context;
let checkboxProps: CheckboxProps = { ...restProps };

View File

@ -18,7 +18,7 @@ export default function Divider({
className,
children,
dashed,
...restProps,
...restProps
}: DividerProps) {
const orientationPrefix = (orientation.length > 0) ? '-' + orientation : orientation;
const classString = classNames(

View File

@ -24,7 +24,7 @@ export default class DropdownButton extends React.Component<DropdownButtonProps,
type, disabled, onClick, children,
prefixCls, className, overlay, trigger, align,
visible, onVisibleChange, placement, getPopupContainer,
...restProps,
...restProps
} = this.props;
const dropdownProps = {

View File

@ -115,7 +115,7 @@ export default class Row extends React.Component<RowProps, RowState> {
render() {
const {
type, justify, align, className, style, children,
prefixCls = 'ant-row', ...others,
prefixCls = 'ant-row', ...others
} = this.props;
const gutter = this.getGutter();
const classes = classNames({

View File

@ -180,7 +180,7 @@ export default class Sider extends React.Component<SiderProps, SiderState> {
render() {
const { prefixCls, className, theme,
collapsible, reverseArrow, trigger, style, width, collapsedWidth,
...others,
...others
} = this.props;
const divProps = omit(others, ['collapsed',
'defaultCollapsed', 'onCollapse', 'breakpoint']);

View File

@ -31,7 +31,7 @@ export const Meta = (props: ListItemMetaProps) => {
avatar,
title,
description,
...others,
...others
} = props;
const classString = classNames(`${prefixCls}-item-meta`, className);

View File

@ -162,7 +162,7 @@ export default class List extends React.Component<ListProps> {
footer,
loading,
locale,
...rest,
...rest
} = this.props;
let loadingProp = loading;

View File

@ -70,7 +70,7 @@ export default class Progress extends React.Component<ProgressProps, {}> {
const props = this.props;
const {
prefixCls, className, percent = 0, status, format, trailColor, size, successPercent,
type, strokeWidth, width, showInfo, gapDegree = 0, gapPosition, ...restProps,
type, strokeWidth, width, showInfo, gapDegree = 0, gapPosition, ...restProps
} = props;
const progressStatus = parseInt((successPercent ? successPercent.toString() : percent.toString()), 10) >= 100 &&
!('status' in props) ? 'success' : (status || 'normal');

View File

@ -47,7 +47,7 @@ export default class Radio extends React.Component<RadioProps, {}> {
className,
children,
style,
...restProps,
...restProps
} = props;
const { radioGroup } = context;
let radioProps: RadioProps = { ...restProps };

View File

@ -130,7 +130,7 @@ export default class Select extends React.Component<SelectProps, {}> {
className = '',
size,
mode,
...restProps,
...restProps
} = this.props;
const cls = classNames({
[`${prefixCls}-lg`]: size === 'large',

View File

@ -25,7 +25,7 @@ export default class Timeline extends React.Component<TimelineProps, any> {
prefixCls,
pending = null, pendingDot,
children, className, reverse,
...restProps,
...restProps
} = this.props;
const pendingNode = typeof pending === 'boolean' ? null : pending;
const classString = classNames(prefixCls, {

View File

@ -52,7 +52,7 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
notFoundContent,
dropdownStyle,
dropdownClassName,
...restProps,
...restProps
} = this.props;
const cls = classNames({

View File

@ -167,7 +167,7 @@
"scrollama": "^1.4.1",
"stylelint": "9.2.1",
"stylelint-config-standard": "^18.0.0",
"typescript": "~2.8.1",
"typescript": "~2.9.1",
"unified": "^7.0.0",
"values.js": "^1.0.3",
"xhr-mock": "^2.4.0",