Detalhes do pacote

mini-types

ant-mini-program7.3kMIT0.1.7

TypeScript declarations for Alipay's mini program.

tinyapp, types

readme (leia-me)

mini-types

中文版本

npm package GitHub stars GitHub forks NPM downloads GitHub issues

TypeScript declarations for Alipay's mini program.

Install

npm install mini-types --save

Usage

Specify types option in the tsconfig.json file.

{
   "compilerOptions": {
      "types" : ["mini-types"]
   }
}

Contributing

We welcome all contributions. You can submit any ideas as pull requests or as a GitHub issue.

changelog (log de mudanças)

0.1.7

  • Bug Fix

    • 修复 IFailResult 类型引入问题。

0.1.6

  • 主要变更

    • [+] IGetFileInfoOptionsdigestAlgorithm 参数类型新增 sha1
    • [+] 优化 offAccelerometerChangeoffUserCaptureScreenoffUserCaptureScreenoffCompassChangeoffGyroscopeChange 的返回类型。
    • [+] 完善 my.scan 参数。
    • [+] 引入 audio 文件。

0.1.5

  • 主要变更

    • [+] 增加 my.createInnerAudioContext()my.getLaunchOptionsSync()my.createLottieContext() 类型声明。

0.1.4

  • 主要变更

    • [+] 增加 my.getExtConfigSync()my.getAppIdSync()my.getUpdateManager()my.showSharePanel() 类型声明。
  • Refactor

    • getApp 返回的 { globalData: any; } 重构成 tinyapp.IGetAppResult
  • Bug Fix

    • 修复 animation 类型。

0.1.3

  • Bug Fix
    • 修复 IPreviewImageOptionscurrent 属性为 number 类型;
    • 修复 pageInstance.$spliceDatacomponentInstance.$spliceData 没有回调函数的问题。

0.0.2

2019-06-10

  • Bug Fix
    • 将 destructiveBtnIndex 参数设为可选;
    • 删掉没有使用到且与新版 TypeScript 底层库冲突的 Omit 类型。