Skip to content

Commit

Permalink
refactor(types): sync components types (#14920)
Browse files Browse the repository at this point in the history
Co-authored-by: ZakaryCode <ZakaryCode@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and ZakaryCode authored Dec 5, 2023
1 parent ccc6ff7 commit a66f371
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/taro-components/types/PageMeta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ declare namespace PageMetaProps {
* <template>
* <page-meta
* :page-style="myPageStyle"
* @scroll="handleScroll"
* `@scroll="handleScroll"
* >
* <navigation-bar :title="title" />
* </page-meta>
Expand Down
2 changes: 2 additions & 0 deletions packages/taro-components/types/Swiper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ interface SwiperProps extends StandardProps {
current?: number
/** 当前所在滑块的 item-id ,不能与 current 被同时指定
* @default ""
* @supported tt
* @weapp deprecated
*/
currentItemId?: string
/** 自动切换时间间隔
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Video.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ interface VideoProps extends StandardProps {
onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
/** 当视频进入和退出全屏时触发
*
* @supported h5, rn, alipay
* @supported alipay, h5, rn
*/
onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
/** 视频出现缓冲时触发
Expand Down
32 changes: 16 additions & 16 deletions packages/taro/types/api/device/clipboard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ declare module '../../index' {
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.setClipboardData.html
*/
setClipboardData(option: setClipboardData.Option): Promise<setClipboardData.Promised>
setClipboardData(option: setClipboardData.Option): Promise<setClipboardData.Promised>

/**
* 获取系统剪贴板内容
* @supported weapp, swan, jd, qq, h5, rn, tt
* @h5 部分实现
* @example
* ```tsx
* Taro.getClipboardData({
* success: function (res){
* console.log(res.data)
* }
* })
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.getClipboardData.html
*/
getClipboardData(res?: getClipboardData.Option): Promise<getClipboardData.Promised>
/**
* 获取系统剪贴板内容
* @supported weapp, swan, jd, qq, h5, rn, tt
* @h5 部分实现
* @example
* ```tsx
* Taro.getClipboardData({
* success: function (res){
* console.log(res.data)
* }
* })
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.getClipboardData.html
*/
getClipboardData(res?: getClipboardData.Option): Promise<getClipboardData.Promised>
}
}
4 changes: 2 additions & 2 deletions packages/taro/types/api/wxml/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ declare module '../../index' {
* @supported weapp, h5, tt
* @example
* ```tsx
* const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
* const observer = Taro.createIntersectionObserver(this, { thresholds: [0], observeAll: true })
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html
*/
Expand All @@ -525,7 +525,7 @@ declare module '../../index' {
* } else if (process.env.TARO_ENV === 'h5') {
* createMediaQueryObserver= Taro.createMediaQueryObserver
* }
* const mediaQueryObserver = createMediaQueryObserver()
* const mediaQueryObserver = createMediaQueryObserver()
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/framework/view/resizable.html#Media%20Query
*/
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a66f371

Please sign in to comment.