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

wx-sdk-ts

v1.2.0-beta.0

Published

Wechat Javascript SDK with Typescript defination

Downloads

5

Readme

wx-sdk-ts - 微信 Javascript SDK for Typescript

为什么有这个项目?

我们都很清楚 Typescript 这种静态类型检查对于微信 Javascript SDK 这种绑在 window 上的东西不是很友好,但是微信的 Javascript 在开发微信应用时又是必须的。

所以有了这个项目,最主要是对微信 Javascript 定义了各种类型,同时简单修正了一下在 webpack 类的打包下的执行情况。

这个项目的情况?

该项目主要是根据官方微信 SDK 文档转译的,存在 Bug 那是必然的。

事实上在写完第一版 .d.ts 后已经发现了代码和文档方面的出入了。

这个项目会随时跟随着微信最新的 SDK 版本,但在足够稳定前不会去掉 beta 的帽子。

请尽情提交各种 Issue,我将第一时间修复。

这个项目未来会如何?

从这个项目中我了解到了微信 Javascript SDK 的具体执行原理,但是这个 SDK 本身的实现并不让人满意, 只是能用而已,这个项目只是会为微信 Javascript SDK 提供类型定义文件, 或许我会另外写一个使用现代 Javascript 特性的 SDK 代码,还请期待。