effect-web-midi 0.1.8 → 0.1.9
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/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js +67 -60
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js.map +1 -1
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts +64 -15
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts +131 -74
|
@@ -1,61 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
import * as EFunction from 'effect/Function';
|
|
2
|
+
import * as Get from "../../getPortByPortId/getPortByPortIdInContext.js";
|
|
3
|
+
import * as Check from "./doesMutablePortPropertyHaveSpecificValueByPort.js";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export const closePortConnectionByPortIdInContext = EFunction.flow(Get.getInputByPortIdInContext, Check.isInputConnectionClosedByPort);
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export const isInputConnectionClosedByPortIdInContext = EFunction.flow(Get.getInputByPortIdInContext, Check.isInputConnectionClosedByPort);
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export const isInputConnectionOpenByPortIdInContext = EFunction.flow(Get.getInputByPortIdInContext, Check.isInputConnectionClosedByPort);
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export const isInputConnectionPendingByPortIdInContext = EFunction.flow(Get.getInputByPortIdInContext, Check.isInputConnectionClosedByPort);
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export const isInputDeviceConnectedByPortIdInContext = EFunction.flow(Get.getInputByPortIdInContext, Check.isInputConnectionClosedByPort);
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export const isInputDeviceDisconnectedByPortIdInContext = EFunction.flow(Get.getInputByPortIdInContext, Check.isInputConnectionClosedByPort);
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export const isOutputConnectionClosedByPortIdInContext = EFunction.flow(Get.getOutputByPortIdInContext, Check.isOutputConnectionClosedByPort);
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export const isOutputConnectionOpenByPortIdInContext = EFunction.flow(Get.getOutputByPortIdInContext, Check.isOutputConnectionClosedByPort);
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export const isOutputConnectionPendingByPortIdInContext = EFunction.flow(Get.getOutputByPortIdInContext, Check.isOutputConnectionClosedByPort);
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export const isOutputDeviceConnectedByPortIdInContext = EFunction.flow(Get.getOutputByPortIdInContext, Check.isOutputConnectionClosedByPort);
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export const isOutputDeviceDisconnectedByPortIdInContext = EFunction.flow(Get.getOutputByPortIdInContext, Check.isOutputConnectionClosedByPort);
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export const isPortConnectionClosedByPortIdInContext = EFunction.flow(Get.getPortByPortIdInContext, Check.isPortConnectionClosedByPort);
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
export const isPortConnectionOpenByPortIdInContext = EFunction.flow(Get.getPortByPortIdInContext, Check.isPortConnectionClosedByPort);
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export const isPortConnectionPendingByPortIdInContext = EFunction.flow(Get.getPortByPortIdInContext, Check.isPortConnectionClosedByPort);
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export const isPortDeviceConnectedByPortIdInContext = EFunction.flow(Get.getPortByPortIdInContext, Check.isPortConnectionClosedByPort);
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
export const isPortDeviceDisconnectedByPortIdInContext = EFunction.flow(Get.getPortByPortIdInContext, Check.isPortConnectionClosedByPort);
|
|
61
68
|
//# sourceMappingURL=doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,GAAG,MAAM,mDAAmD,CAAA;AACxE,OAAO,KAAK,KAAK,MAAM,qDAAqD,CAAA;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,SAAS,CAAC,IAAI,CAChE,GAAG,CAAC,yBAAyB,EAC7B,KAAK,CAAC,6BAA6B,CACpC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,SAAS,CAAC,IAAI,CACpE,GAAG,CAAC,yBAAyB,EAC7B,KAAK,CAAC,6BAA6B,CACpC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,SAAS,CAAC,IAAI,CAClE,GAAG,CAAC,yBAAyB,EAC7B,KAAK,CAAC,6BAA6B,CACpC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,SAAS,CAAC,IAAI,CACrE,GAAG,CAAC,yBAAyB,EAC7B,KAAK,CAAC,6BAA6B,CACpC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,SAAS,CAAC,IAAI,CACnE,GAAG,CAAC,yBAAyB,EAC7B,KAAK,CAAC,6BAA6B,CACpC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM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AI,CAClE,GAAG,CAAC,wBAAwB,EAC5B,KAAK,CAAC,4BAA4B,CACnC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,SAAS,CAAC,IAAI,CACrE,GAAG,CAAC,wBAAwB,EAC5B,KAAK,CAAC,4BAA4B,CACnC,CAAA"}
|
|
@@ -1,16 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*/
|
|
4
|
+
export declare const closePortConnectionByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const isInputConnectionClosedByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export declare const isInputConnectionOpenByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare const isInputConnectionPendingByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare const isInputDeviceConnectedByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare const isInputDeviceDisconnectedByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"input">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare const isOutputConnectionClosedByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare const isOutputConnectionOpenByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare const isOutputConnectionPendingByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare const isOutputDeviceConnectedByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare const isOutputDeviceDisconnectedByPortIdInContext: (id: string & import("effect/Brand").Brand<"MIDIPortId"> & import("effect/Brand").Brand<"output">) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare const isPortConnectionClosedByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
export declare const isPortConnectionOpenByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export declare const isPortConnectionPendingByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare const isPortDeviceConnectedByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare const isPortDeviceDisconnectedByPortIdInContext: (id: import("../../EMIDIPort.ts").BothId) => import("effect/Effect").Effect<import("../../Util.ts").IsEqualFlag<"isCertainConnectionState", "closed">, import("../../EMIDIErrors.ts").PortNotFoundError, import("../../EMIDIAccess.ts").EMIDIAccess>;
|
|
16
65
|
//# sourceMappingURL=doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValue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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export const
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
import * as EFunction from 'effect/Function'
|
|
2
|
+
import * as Get from '../../getPortByPortId/getPortByPortIdInContext.ts'
|
|
3
|
+
import * as Check from './doesMutablePortPropertyHaveSpecificValueByPort.ts'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export const closePortConnectionByPortIdInContext = EFunction.flow(
|
|
9
|
+
Get.getInputByPortIdInContext,
|
|
10
|
+
Check.isInputConnectionClosedByPort,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export const isInputConnectionClosedByPortIdInContext = EFunction.flow(
|
|
17
|
+
Get.getInputByPortIdInContext,
|
|
18
|
+
Check.isInputConnectionClosedByPort,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export const isInputConnectionOpenByPortIdInContext = EFunction.flow(
|
|
25
|
+
Get.getInputByPortIdInContext,
|
|
26
|
+
Check.isInputConnectionClosedByPort,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export const isInputConnectionPendingByPortIdInContext = EFunction.flow(
|
|
33
|
+
Get.getInputByPortIdInContext,
|
|
34
|
+
Check.isInputConnectionClosedByPort,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export const isInputDeviceConnectedByPortIdInContext = EFunction.flow(
|
|
41
|
+
Get.getInputByPortIdInContext,
|
|
42
|
+
Check.isInputConnectionClosedByPort,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export const isInputDeviceDisconnectedByPortIdInContext = EFunction.flow(
|
|
49
|
+
Get.getInputByPortIdInContext,
|
|
50
|
+
Check.isInputConnectionClosedByPort,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export const isOutputConnectionClosedByPortIdInContext = EFunction.flow(
|
|
57
|
+
Get.getOutputByPortIdInContext,
|
|
58
|
+
Check.isOutputConnectionClosedByPort,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export const isOutputConnectionOpenByPortIdInContext = EFunction.flow(
|
|
65
|
+
Get.getOutputByPortIdInContext,
|
|
66
|
+
Check.isOutputConnectionClosedByPort,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export const isOutputConnectionPendingByPortIdInContext = EFunction.flow(
|
|
73
|
+
Get.getOutputByPortIdInContext,
|
|
74
|
+
Check.isOutputConnectionClosedByPort,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export const isOutputDeviceConnectedByPortIdInContext = EFunction.flow(
|
|
81
|
+
Get.getOutputByPortIdInContext,
|
|
82
|
+
Check.isOutputConnectionClosedByPort,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
export const isOutputDeviceDisconnectedByPortIdInContext = EFunction.flow(
|
|
89
|
+
Get.getOutputByPortIdInContext,
|
|
90
|
+
Check.isOutputConnectionClosedByPort,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export const isPortConnectionClosedByPortIdInContext = EFunction.flow(
|
|
97
|
+
Get.getPortByPortIdInContext,
|
|
98
|
+
Check.isPortConnectionClosedByPort,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
export const isPortConnectionOpenByPortIdInContext = EFunction.flow(
|
|
105
|
+
Get.getPortByPortIdInContext,
|
|
106
|
+
Check.isPortConnectionClosedByPort,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
export const isPortConnectionPendingByPortIdInContext = EFunction.flow(
|
|
113
|
+
Get.getPortByPortIdInContext,
|
|
114
|
+
Check.isPortConnectionClosedByPort,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
export const isPortDeviceConnectedByPortIdInContext = EFunction.flow(
|
|
121
|
+
Get.getPortByPortIdInContext,
|
|
122
|
+
Check.isPortConnectionClosedByPort,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
export const isPortDeviceDisconnectedByPortIdInContext = EFunction.flow(
|
|
129
|
+
Get.getPortByPortIdInContext,
|
|
130
|
+
Check.isPortConnectionClosedByPort,
|
|
131
|
+
)
|