GithubHelp home page GithubHelp logo

Comments (2)

batu1579 avatar batu1579 commented on July 22, 2024

hi @xlh001

目前这个仓库里的类型声明并没有在维护,我把它存放在了另外的地方: hamibot-types

你可以使用里面自带的脚本来方便的获取类型声明(推荐 hamibot 代理的那个)。另外如果你使用这个仓库为模板创建项目的话需要根据说明文档里的 迁移说明 来进行一下简单的调整。

我刚才检查了一下你提到的这些函数,clicklongClickpressswipe 这几个函数的声明在 hamibot-types 里面的声明是没有问题的,setScreenMetrics 函数的返回值类型在文档当中就没有具体描述。我测试过以后认为这个函数确实没有返回值,测试代码如下:

let status = setScreenMetrics(device.width, device.height)
console.log('status',status)

得到的结果截图如下:

image

可以看到返回的值是 undefined 所以我认为应该是没有返回值。

希望能够帮到你,等你回复~

from hamibot-starter.

xlh001 avatar xlh001 commented on July 22, 2024

好的,我调整一下代码判断逻辑

from hamibot-starter.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.