Skip to content

Commit

Permalink
feat(types): add tt shims fix #7200
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Jul 17, 2023
1 parent e0d5e81 commit 304998e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/taro-tt/types/shims-tt.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Taro from '@tarojs/taro'

declare module '@tarojs/taro' {
namespace getSystemInfoSync {
interface Result {
/** 宿主 APP 名称,详情见 [appName 说明](https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/api/device/system-information/tt-get-system-info/#appName-%E8%AF%B4%E6%98%8E) */
appName?: string
}
}

namespace getSystemInfo {
interface Result {
/** 宿主 APP 名称,详情见 [appName 说明](https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/api/device/system-information/tt-get-system-info-sync/#appName-%E8%AF%B4%E6%98%8E) */
appName?: string
}
}
}

0 comments on commit 304998e

Please sign in to comment.