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() { render() {
const { const {
prefixCls, shape, size, src, icon, className, ...others, prefixCls, shape, size, src, icon, className, ...others
} = this.props; } = this.props;
const sizeCls = classNames({ const sizeCls = classNames({

View File

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

View File

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

View File

@ -134,7 +134,7 @@ export default class Card extends React.Component<CardProps, CardState> {
render() { render() {
const { const {
prefixCls = 'ant-card', className, extra, bodyStyle = {}, noHovering, hoverable, title, loading, 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; } = this.props;
const classString = classNames(prefixCls, className, { 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 { props, state } = this;
const { const {
prefixCls, inputPrefixCls, children, placeholder, size, disabled, prefixCls, inputPrefixCls, children, placeholder, size, disabled,
className, style, allowClear, showSearch = false, ...otherProps, className, style, allowClear, showSearch = false, ...otherProps
} = props; } = props;
const value = state.value; const value = state.value;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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