Skip to content

Commit

Permalink
chore: fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Sep 13, 2016
1 parent cda671f commit 8db2b79
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion components/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Animate from 'rc-animate';
import Icon from '../icon';
import classNames from 'classnames';

interface AlertProps {
export interface AlertProps {
/**
* Type of Alert styles, options:`success`, `info`, `warning`, `error`
*/
Expand Down
2 changes: 1 addition & 1 deletion components/back-top/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getScroll(target, top) {
return ret;
}

interface BackTopProps {
export interface BackTopProps {
visibilityHeight?: number;
onClick?: (event) => void;
target?: () => HTMLElement | Window;
Expand Down
2 changes: 1 addition & 1 deletion components/badge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Animate from 'rc-animate';
import ScrollNumber from './ScrollNumber';
import classNames from 'classnames';

interface BadgeProps {
export interface BadgeProps {
/** Number to show in badge */
count: number | string;
/** Max count to show */
Expand Down
2 changes: 1 addition & 1 deletion components/breadcrumb/BreadcrumbItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import splitObject from '../_util/splitObject';

interface BreadcrumbItemProps {
export interface BreadcrumbItemProps {
separator?: React.ReactNode;
href?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions components/button/button-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import splitObject from '../_util/splitObject';

const prefix = 'ant-btn-group-';

type ButtonSize = 'small' | 'large'
export type ButtonSize = 'small' | 'large'

interface ButtonGroupProps {
export interface ButtonGroupProps {
size?: ButtonSize;
style?: React.CSSProperties;
className?: string;
Expand Down
8 changes: 4 additions & 4 deletions components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function insertSpace(child) {
return child;
}

type ButtonType = 'primary' | 'ghost' | 'dashed'
type ButtonShape = 'circle' | 'circle-outline'
type ButtonSize = 'small' | 'large'
export type ButtonType = 'primary' | 'ghost' | 'dashed'
export type ButtonShape = 'circle' | 'circle-outline'
export type ButtonSize = 'small' | 'large'

interface ButtonProps {
export interface ButtonProps {
type?: ButtonType;
htmlType?: string;
icon?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function zerofixed(v) {
return `${v}`;
}

interface CalendarContext {
export interface CalendarContext {
antLocale?: {
Calendar?: any
};
Expand Down
2 changes: 1 addition & 1 deletion components/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import classNames from 'classnames';
import splitObject from '../_util/splitObject';

interface CardProps {
export interface CardProps {
title?: React.ReactNode;
extra?: React.ReactNode;
bordered?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import RangePicker from './RangePicker';
import Calendar from './Calendar';
import { TimePickerProps } from '../time-picker';

interface PickerProps {
export interface PickerProps {
format?: string;
disabled?: boolean;
style?: React.CSSProperties;
Expand All @@ -19,7 +19,7 @@ interface PickerProps {
getCalendarContainer?: (trigger) => React.ReactNode;
}

interface SinglePickerProps {
export interface SinglePickerProps {
value?: moment.Moment;
defaultValue?: moment.Moment;
defaultPickerValue?: moment.Moment;
Expand Down
2 changes: 1 addition & 1 deletion components/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface FormComponentProps {
form: WrappedFormUtils;
}

class FormComponent extends React.Component<FormComponentProps, {}> {
export class FormComponent extends React.Component<FormComponentProps, {}> {
}

export interface ComponentDecorator {
Expand Down
2 changes: 1 addition & 1 deletion components/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function clearNextFrameAction(nextFrameId) {
}
}

interface AutoSizeType {
export interface AutoSizeType {
minRows?: number;
maxRows?: number;
};
Expand Down
2 changes: 1 addition & 1 deletion components/layout/col.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import splitObject from '../_util/splitObject';
const stringOrNumber = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);
const objectOrNumber = PropTypes.oneOfType([PropTypes.object, PropTypes.number]);

interface ColSize {
export interface ColSize {
span?: number;
order?: number;
offset?: number;
Expand Down
4 changes: 2 additions & 2 deletions components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import animation from '../_util/openAnimation';
function noop() {
}

interface SelectParam {
export interface SelectParam {
key: string;
keyPath: Array<string>;
item: any;
domEvent: any;
selectedKeys: Array<string>;
}

interface ClickParam {
export interface ClickParam {
key: string;
keyPath: Array<string>;
item: any;
Expand Down
2 changes: 1 addition & 1 deletion components/message/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type ConfigContent = React.ReactNode;
type ConfigDuration = number;
type ConfigOnClose = () => void;

interface ConfigOptions {
export interface ConfigOptions {
top?: number;
duration?: number;
prefixCls?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PropTypes } from 'react';
import RcSelect, { Option, OptGroup } from 'rc-select';
import classNames from 'classnames';

type SelectValue = string | string[] | Array<{ key: string, label: React.ReactNode }>;
export type SelectValue = string | string[] | Array<{ key: string, label: React.ReactNode }>;

export interface SelectProps {
prefixCls?: string;
Expand Down
4 changes: 2 additions & 2 deletions components/slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import * as React from 'react';
import { PropTypes } from 'react';
import RcSlider from 'rc-slider';

interface SliderMarks {
export interface SliderMarks {
[key: number]: React.ReactNode | {
style: React.CSSProperties,
label: React.ReactNode,
};
}

type SliderValue = number | [number, number];
export type SliderValue = number | [number, number];

export interface SliderProps {
range?: boolean;
Expand Down
6 changes: 3 additions & 3 deletions components/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const defaultPagination = {
onShowSizeChange: noop,
};

interface TableRowSelection {
export interface TableRowSelection {
type?: 'checkbox' | 'radio';
selectedRowKeys?: string[];
onChange?: (selectedRowKeys: string[], selectedRows: Object[]) => any;
Expand All @@ -42,7 +42,7 @@ interface TableRowSelection {
onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => any;
}

interface TableColumnConfig {
export interface TableColumnConfig {
title?: React.ReactNode;
key?: string;
dataIndex?: string;
Expand Down Expand Up @@ -87,7 +87,7 @@ export interface TableProps {
childrenColumnName?: 'string';
}

interface TableContext {
export interface TableContext {
antLocale?: {
Table?: any,
};
Expand Down
4 changes: 2 additions & 2 deletions components/tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { cloneElement } from 'react';
import classNames from 'classnames';
import Icon from '../icon';

type TabsType = 'line' | 'card' | 'editable-card'
type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
export type TabsType = 'line' | 'card' | 'editable-card'
export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';

export interface TabsProps {
activeKey?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RcTooltip from 'rc-tooltip';
import getPlacements from '../popover/placements';
import classNames from 'classnames';

type PopoverPlacement =
export type PopoverPlacement =
'top' | 'left' | 'right' | 'bottom' | 'topLeft' |
'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' |
'leftBottom' | 'rightTop' | 'rightBottom'
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/interface.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface TreeData {
export interface TreeData {
key: string;
value: string;
label: React.ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions components/upload/interface.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed'
export type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed'

export interface HttpRequestHeader {
[key: string]: string;
Expand All @@ -18,7 +18,7 @@ export interface File {
originFileObj?: File;
}

interface UploadChangeParam {
export interface UploadChangeParam {
file: File;
fileList: Array<File>;
event?: { percent: number };
Expand Down
File renamed without changes.

0 comments on commit 8db2b79

Please sign in to comment.