npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

swan-app-dt

v2.2.2

Published

基于百度小程序文档(结合微信小程序文档) 的 API DefinitelyTyped

Downloads

17

Readme

swan-app-dt

基于百度小程序文档的 API DefinitelyTyped

Tip: 有部分内容百度的实际实现与文档描述暂时不同,这里以文档为准。

一是不确定具体有哪些不同, 二是以后百度应该会一一修复

所以有发现不同的地方时,可以在本地重定义一下。 就是这样😋

Usage

  1. 参考 test:
  1. tsconfig 配置
{
  "compilerOptions": {
    "baseUrl": ".",
    "target": "es5",
    "module": "es2015",
    "inlineSourceMap": true,
    "inlineSources": true,
    "noImplicitAny": true,
    "noImplicitThis": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    // 以下两项开启 Decorator
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "typeRoots": ["node_modules/swan-app-dt"]
  }
}

TODO

  • [x] 网络
  • [ ] AI
    • [ ] 文字识别
    • [ ] 文本审核
    • [ ] 语音合成
    • [ ] 图像审核
    • [ ] 图像识别
    • [ ] 语音识别
  • [x] 媒体
  • [x] 文件
  • [x] 数据存储
  • [x] 位置
  • [x] 界面
    • [x] 绘图
    • [x] 交互反馈
    • [x] 设置导航条
    • [x] 设置tabBar
    • [x] 导航
    • [x] 动画
    • [x] 位置
    • [x] 下拉刷新
    • [x] 节点信息
  • [x] 设备
    • [x] 系统信息
    • [x] 内存
    • [x] 网络状态
    • [x] 加速度计
    • [x] 罗盘
    • [x] 扫码
    • [x] 屏幕亮度
    • [x] 用户截屏事件
    • [x] 振动
    • [x] 手机联系人
    • [x] 拨打电话
    • [x] 剪贴板
  • [x] 第三方平台
  • [x] 开放接口
  • [x] 更新
  • [x] 调试
  • [x] 数据分析