node-web-gpio 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
/** ポート番号 */
|
|
4
|
-
|
|
4
|
+
type PortNumber = number;
|
|
5
5
|
/** ポート名 */
|
|
6
|
-
|
|
6
|
+
type PortName = string;
|
|
7
7
|
/** ピン名 */
|
|
8
|
-
|
|
8
|
+
type PinName = string;
|
|
9
9
|
/** 入出力方向 */
|
|
10
|
-
|
|
10
|
+
type DirectionMode = 'in' | 'out';
|
|
11
11
|
/** GPIO 値 0: LOW / 1: HIGH */
|
|
12
|
-
|
|
12
|
+
type GPIOValue = 0 | 1;
|
|
13
13
|
/**
|
|
14
14
|
* GPIO チェンジイベント
|
|
15
15
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-web-gpio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "GPIO access with Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "Kohei Watanabe <kou029w@gmail.com>",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/node": "^
|
|
17
|
+
"@types/node": "^18.0.0",
|
|
18
18
|
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
19
19
|
"@typescript-eslint/parser": "^5.5.0",
|
|
20
20
|
"eslint": "^8.4.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lint-staged": "^13.0.0",
|
|
23
23
|
"prettier": "^2.5.1",
|
|
24
24
|
"typedoc": "^0.23.0",
|
|
25
|
-
"typescript": "^
|
|
25
|
+
"typescript": "^5.0.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc",
|