Skip to content

Commit

Permalink
chore: export interface (#2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ickeep authored and luckyadam committed Mar 8, 2019
1 parent 53f5fac commit 5e538de
Show file tree
Hide file tree
Showing 35 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion packages/taro-components/types/Ad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { StandardProps, CommonEventFunction } from './common'
* @since 1.9.94
* @see {@link https://developers.weixin.qq.com/miniprogram/dev/component/ad.html}
*/
interface AdProps extends StandardProps {
export interface AdProps extends StandardProps {

/**
* 广告单元id,可在小程序管理后台的流量主模块新建
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { StandardProps, CommonEventFunction } from './common'
* @deprecated
* @see {@link https://developers.weixin.qq.com/miniprogram/dev/component/audio.html}
*/
interface AudioProps extends StandardProps {
export interface AudioProps extends StandardProps {

/**
* audio 组件的唯一标识符
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StandardProps, CommonEventFunction } from './common'
type OpenType = 'contact' | 'share' | 'getUserInfo' | 'getPhoneNumber'


interface ButtonProps extends StandardProps {
export interface ButtonProps extends StandardProps {

/**
* 按钮的大小
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Camera.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface CameraProps extends StandardProps {
export interface CameraProps extends StandardProps {

/**
* 模式,有效值为normal, scanCode
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Canvas.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface CanvasProps extends StandardProps {
export interface CanvasProps extends StandardProps {

/**
* canvas 组件的唯一标识符
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components/types/Checkbox.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, FormItemProps } from './common'

interface CheckboxGroupProps extends StandardProps, FormItemProps {
export interface CheckboxGroupProps extends StandardProps, FormItemProps {
/**
* <checkbox-group/>中选中项发生改变是触发 change 事件
*
Expand All @@ -13,7 +13,7 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {

declare const CheckboxGroup: ComponentType<CheckboxGroupProps>

interface CheckboxProps extends StandardProps {
export interface CheckboxProps extends StandardProps {

/**
* <checkbox/>标识,选中时触发<checkbox-group/>的 change 事件,并携带 <checkbox/> 的 value
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components/types/CoverView.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface CoverViewProps extends StandardProps {
export interface CoverViewProps extends StandardProps {

/**
* 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效
*/
scrollTop?: number
}

interface CoverImageProps extends StandardProps {
export interface CoverImageProps extends StandardProps {

/**
* 图标路径,支持临时路径、网络地址(1.6.0起支持)。暂不支持base64格式。
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Form.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface FormProps extends StandardProps {
export interface FormProps extends StandardProps {
/**
* 是否返回 formId 用于发送模板消息
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/FunctionalPageNavigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { StandardProps, CommonEventFunction } from './common'
* @since 2.1.0
* @see {@link https://developers.weixin.qq.com/miniprogram/dev/component/functional-page-navigator.html}
*/
interface FunctionalPageNavigatorProps extends StandardProps {
export interface FunctionalPageNavigatorProps extends StandardProps {

/**
* 跳转到的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版);线上版本必须设置为 release
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Icon.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface IconProps extends StandardProps {
export interface IconProps extends StandardProps {

/**
* icon的类型,有效类型:
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Image.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface ImageProps extends StandardProps {
export interface ImageProps extends StandardProps {

/**
* 图片资源地址
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Input.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, FormItemProps } from './common'

interface InputProps extends StandardProps, FormItemProps {
export interface InputProps extends StandardProps, FormItemProps {

/**
* 输入框的初始内容
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Label.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface LabelProps extends StandardProps {
export interface LabelProps extends StandardProps {

/**
* 绑定控件的 id
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/LivePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { StandardProps, CommonEventFunction } from './common'
* @since 1.7.0
* @see {@link https://developers.weixin.qq.com/miniprogram/dev/component/live-player.html}
*/
interface LivePlayerProps extends StandardProps {
export interface LivePlayerProps extends StandardProps {

/**
* 音视频地址。目前仅支持 flv, rtmp 格式
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/LivePusher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { StandardProps, CommonEventFunction } from './common'
* @since 1.7.0
* @see {@link https://developers.weixin.qq.com/miniprogram/dev/component/live-pusher.html}
*/
interface LivePusherProps extends StandardProps {
export interface LivePusherProps extends StandardProps {

/**
* 推流地址。目前仅支持 flv, rtmp 格式
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Map.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export type marker = {
* 地图。
* @see https://developers.weixin.qq.com/miniprogram/dev/component/map.html#map
*/
interface MapProps extends StandardProps {
export interface MapProps extends StandardProps {

/**
* 中心经度
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components/types/MovableView.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, TouchEventFunction, Omit } from './common'

interface MovableAreaProps extends StandardProps {
export interface MovableAreaProps extends StandardProps {

/**
* 当里面的movable-view设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area
Expand All @@ -12,7 +12,7 @@ interface MovableAreaProps extends StandardProps {
}


interface MovableViewProps extends Omit<StandardProps, 'animation'> {
export interface MovableViewProps extends Omit<StandardProps, 'animation'> {

/**
* movable-view的移动方向,属性值有`all`、`vertical`、`horizontal`、`none`
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Navigator.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface NavigatorProps extends StandardProps {
export interface NavigatorProps extends StandardProps {

/**
* 在哪个目标上发生跳转,默认当前小程序
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/OfficialAccount.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface OfficialAccountProps extends StandardProps {
export interface OfficialAccountProps extends StandardProps {

/**
* 组件加载成功时触发
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/OpenData.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface OpenDataProps extends StandardProps {
export interface OpenDataProps extends StandardProps {

/**
* 开放数据类型
Expand Down
12 changes: 6 additions & 6 deletions packages/taro-components/types/Picker.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, FormItemProps } from './common'

interface PickerStandardProps extends StandardProps, FormItemProps {
export interface PickerStandardProps extends StandardProps, FormItemProps {
/**
* 是否禁用
*
Expand All @@ -18,7 +18,7 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
onCancel?: CommonEventFunction
}

interface PickerSelectorProps extends PickerStandardProps {
export interface PickerSelectorProps extends PickerStandardProps {
/**
* 从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器
*/
Expand All @@ -37,7 +37,7 @@ interface PickerSelectorProps extends PickerStandardProps {
value: number
}

interface PickerMultiSelectorProps extends PickerStandardProps {
export interface PickerMultiSelectorProps extends PickerStandardProps {
/**
* 从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器
*/
Expand All @@ -60,7 +60,7 @@ interface PickerMultiSelectorProps extends PickerStandardProps {
onColumnChange?: CommonEventFunction
}

interface PickerTimeProps extends PickerStandardProps {
export interface PickerTimeProps extends PickerStandardProps {
/**
* 从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器
*/
Expand All @@ -79,7 +79,7 @@ interface PickerTimeProps extends PickerStandardProps {
end?: string
}

interface PickerDateProps extends PickerStandardProps {
export interface PickerDateProps extends PickerStandardProps {
/**
* 从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器
*/
Expand All @@ -104,7 +104,7 @@ interface PickerDateProps extends PickerStandardProps {
fields?: 'year' | 'month' | 'day'
}

interface PickerRegionProps extends PickerStandardProps {
export interface PickerRegionProps extends PickerStandardProps {
/**
* 从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/PickerView.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface PickerViewProps extends StandardProps {
export interface PickerViewProps extends StandardProps {

/**
* 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Progress.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface ProgressProps extends StandardProps {
export interface ProgressProps extends StandardProps {

/**
* 百分比0~100
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components/types/Radio.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, FormItemProps } from './common'

interface RadioGroupProps extends StandardProps, FormItemProps {
export interface RadioGroupProps extends StandardProps, FormItemProps {
onChange?: CommonEventFunction
}

declare const RadioGroup: ComponentType<RadioGroupProps>

interface RadioProps extends StandardProps {
export interface RadioProps extends StandardProps {

/**
* `<radio/>` 标识。当该`<radio/>` 选中时,`<radio-group/>`的 change 事件会携带`<radio/>`的value
Expand Down
8 changes: 4 additions & 4 deletions packages/taro-components/types/RichText.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps } from './common'

interface Text {
export interface Text {

/**
* 文本节点
Expand All @@ -16,9 +16,9 @@ interface Text {
text: string;
}

interface HTMLElement {
export interface HTMLElement {

/**
/**
* 元素节点,默认为元素节点
*/
type?: 'node';
Expand All @@ -42,7 +42,7 @@ interface HTMLElement {

type Nodes = Array<Text | HTMLElement> | string

interface RichTextProps extends StandardProps {
export interface RichTextProps extends StandardProps {
nodes: Nodes
}

Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/ScrollView.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface ScrollViewProps extends StandardProps {
export interface ScrollViewProps extends StandardProps {

/**
* 允许横向滚动
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Slider.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, FormItemProps } from './common'

interface SliderProps extends StandardProps, FormItemProps {
export interface SliderProps extends StandardProps, FormItemProps {

/**
* 最小值
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-components/types/Swiper.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'

interface SwiperProps extends StandardProps {
export interface SwiperProps extends StandardProps {

/**
* 是否显示面板指示点
Expand Down Expand Up @@ -119,7 +119,7 @@ interface SwiperProps extends StandardProps {

declare const Swiper: ComponentType<SwiperProps>

interface SwiperItemProps extends StandardProps {
export interface SwiperItemProps extends StandardProps {

/**
* 该 swiper-item 的标识符
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Switch.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction, FormItemProps } from './common'

interface SwitchProps extends StandardProps, FormItemProps {
export interface SwitchProps extends StandardProps, FormItemProps {

/**
* 是否选中
Expand Down
Loading

0 comments on commit 5e538de

Please sign in to comment.