pebblejs-typescript-definitions:提供PebbleJS库的TypeScript定义

时间:2021-05-10 20:56:01
【文件属性】:
文件名称:pebblejs-typescript-definitions:提供PebbleJS库的TypeScript定义
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-10 20:56:01
TypeScript pebblejs-typescript-definitions 为提供定义和常量值,以允许您使用TypeScript编写强类型的Pebble应用程序。 用法 该存储库包含两个文件: pebblejs.d.ts-为Pebble.js的文档部分提供TypeScript定义。 pebble.consts.ts-提供许多const值,可用于替换传递给Pebble.js函数的字符串值(例如, COLOR_BLACK代替'black'或VIBE_SHORT代替'short' )。 该文件是可选的。 在Pebble.js项目的/src/js文件夹中包含pebblejs.d.ts(如果要使用,请包含pebble.consts.ts),然后确保在使用--module 'commonjs'编译TypeScript文件之前建立您的专案。 例子 import UI = require('ui'); imp
【文件预览】:
pebblejs-typescript-definitions-master
----LICENSE(1KB)
----pebblejs.consts.ts(6KB)
----README.md(1KB)
----pebblejs.d.ts(19KB)

网友评论