effect-web-midi 0.1.0
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/README.md +7 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/src/EMIDIAccess.js +68 -0
- package/dist/src/EMIDIAccess.js.map +1 -0
- package/dist/src/EMIDIInput.js +226 -0
- package/dist/src/EMIDIInput.js.map +1 -0
- package/dist/src/EMIDIOutput.js +225 -0
- package/dist/src/EMIDIOutput.js.map +1 -0
- package/dist/src/EMIDIPort.js +213 -0
- package/dist/src/EMIDIPort.js.map +1 -0
- package/dist/src/MIDIErrors.js +4 -0
- package/dist/src/MIDIErrors.js.map +1 -0
- package/dist/src/Parsing.js +2 -0
- package/dist/src/Parsing.js.map +1 -0
- package/dist/src/StreamMaker.js +1 -0
- package/dist/src/StreamMaker.js.map +1 -0
- package/dist/src/Util.js +4 -0
- package/dist/src/Util.js.map +1 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal/EMIDIAccess.js +409 -0
- package/dist/src/internal/EMIDIAccess.js.map +1 -0
- package/dist/src/internal/EMIDIInput.js +69 -0
- package/dist/src/internal/EMIDIInput.js.map +1 -0
- package/dist/src/internal/EMIDIOutput.js +120 -0
- package/dist/src/internal/EMIDIOutput.js.map +1 -0
- package/dist/src/internal/EMIDIPort.js +125 -0
- package/dist/src/internal/EMIDIPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js +27 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js +19 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js +16 -0
- package/dist/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js +18 -0
- package/dist/src/internal/MIDIPortMethodCalls/actOnPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js +27 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js +18 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js +16 -0
- package/dist/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js +21 -0
- package/dist/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js +30 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js +18 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js +16 -0
- package/dist/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.js.map +1 -0
- package/dist/src/internal/StreamMaker.js +101 -0
- package/dist/src/internal/StreamMaker.js.map +1 -0
- package/dist/src/internal/errors.js +161 -0
- package/dist/src/internal/errors.js.map +1 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js +53 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js +18 -0
- package/dist/src/internal/getPortByPortId/getPortByPortIdInContext.js.map +1 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js +52 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.js.map +1 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js +13 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js +18 -0
- package/dist/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js +66 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js +61 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js +61 -0
- package/dist/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js +42 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js +42 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js +29 -0
- package/dist/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js +6 -0
- package/dist/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js +46 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js +25 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.js.map +1 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js +31 -0
- package/dist/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.js.map +1 -0
- package/dist/src/internal/parsing.js +117 -0
- package/dist/src/internal/parsing.js.map +1 -0
- package/dist/src/internal/util.js +59 -0
- package/dist/src/internal/util.js.map +1 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/index.d.ts.map +1 -0
- package/dist-types/src/EMIDIAccess.d.ts +27 -0
- package/dist-types/src/EMIDIAccess.d.ts.map +1 -0
- package/dist-types/src/EMIDIInput.d.ts +26 -0
- package/dist-types/src/EMIDIInput.d.ts.map +1 -0
- package/dist-types/src/EMIDIOutput.d.ts +26 -0
- package/dist-types/src/EMIDIOutput.d.ts.map +1 -0
- package/dist-types/src/EMIDIPort.d.ts +26 -0
- package/dist-types/src/EMIDIPort.d.ts.map +1 -0
- package/dist-types/src/MIDIErrors.d.ts +2 -0
- package/dist-types/src/MIDIErrors.d.ts.map +1 -0
- package/dist-types/src/Parsing.d.ts +2 -0
- package/dist-types/src/Parsing.d.ts.map +1 -0
- package/dist-types/src/StreamMaker.d.ts +2 -0
- package/dist-types/src/StreamMaker.d.ts.map +1 -0
- package/dist-types/src/Util.d.ts +2 -0
- package/dist-types/src/Util.d.ts.map +1 -0
- package/dist-types/src/index.d.ts +9 -0
- package/dist-types/src/index.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIAccess.d.ts +339 -0
- package/dist-types/src/internal/EMIDIAccess.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIInput.d.ts +48 -0
- package/dist-types/src/internal/EMIDIInput.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIOutput.d.ts +93 -0
- package/dist-types/src/internal/EMIDIOutput.d.ts.map +1 -0
- package/dist-types/src/internal/EMIDIPort.d.ts +87 -0
- package/dist-types/src/internal/EMIDIPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts +16 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts +13 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts +11 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/actOnPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts +23 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts +13 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts +21 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts +15 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts +13 -0
- package/dist-types/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/StreamMaker.d.ts +202 -0
- package/dist-types/src/internal/StreamMaker.d.ts.map +1 -0
- package/dist-types/src/internal/errors.d.ts +260 -0
- package/dist-types/src/internal/errors.d.ts.map +1 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts +27 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts +20 -0
- package/dist-types/src/internal/getPortByPortId/getPortByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts +71 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts.map +1 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts +4 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts +20 -0
- package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts +62 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts +16 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts +16 -0
- package/dist-types/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts +36 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts +22 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts +17 -0
- package/dist-types/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts +7 -0
- package/dist-types/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts +71 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts +7 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.d.ts.map +1 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts +28 -0
- package/dist-types/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.d.ts.map +1 -0
- package/dist-types/src/internal/parsing.d.ts +72 -0
- package/dist-types/src/internal/parsing.d.ts.map +1 -0
- package/dist-types/src/internal/util.d.ts +33 -0
- package/dist-types/src/internal/util.d.ts.map +1 -0
- package/index.ts +1 -0
- package/package.json +83 -0
- package/src/EMIDIAccess.ts +271 -0
- package/src/EMIDIInput.ts +270 -0
- package/src/EMIDIOutput.ts +269 -0
- package/src/EMIDIPort.ts +267 -0
- package/src/MIDIErrors.ts +13 -0
- package/src/Parsing.ts +12 -0
- package/src/StreamMaker.ts +12 -0
- package/src/Util.ts +19 -0
- package/src/index.ts +8 -0
- package/src/internal/EMIDIAccess.ts +893 -0
- package/src/internal/EMIDIInput.ts +114 -0
- package/src/internal/EMIDIOutput.ts +228 -0
- package/src/internal/EMIDIPort.ts +233 -0
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPort.ts +43 -0
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdAndAccess.ts +39 -0
- package/src/internal/MIDIPortMethodCalls/acquireReleasePortConnection/acquireReleasePortConnectionByPortIdInContext.ts +27 -0
- package/src/internal/MIDIPortMethodCalls/actOnPort.ts +66 -0
- package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPort.ts +38 -0
- package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdAndAccess.ts +38 -0
- package/src/internal/MIDIPortMethodCalls/closePortConnection/closePortConnectionByPortIdInContext.ts +27 -0
- package/src/internal/MIDIPortMethodCalls/makeMIDIPortMethodCallerFactory.ts +73 -0
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPort.ts +44 -0
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdAndAccess.ts +38 -0
- package/src/internal/MIDIPortMethodCalls/openPortConnection/openPortConnectionByPortIdInContext.ts +27 -0
- package/src/internal/StreamMaker.ts +414 -0
- package/src/internal/errors.ts +220 -0
- package/src/internal/getPortByPortId/getPortByPortIdAndAccess.ts +116 -0
- package/src/internal/getPortByPortId/getPortByPortIdInContext.ts +26 -0
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts +148 -0
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts +14 -0
- package/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts +51 -0
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts +127 -0
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts +74 -0
- package/src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts +74 -0
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts +63 -0
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts +110 -0
- package/src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdInContext.ts +37 -0
- package/src/internal/mutablePropertyTools/getValueInRawPortFieldUnsafe.ts +12 -0
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPort.ts +183 -0
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdAndAccess.ts +29 -0
- package/src/internal/mutablePropertyTools/matchMutablePortProperty/matchMutablePortPropertyByPortIdInContext.ts +86 -0
- package/src/internal/parsing.ts +219 -0
- package/src/internal/util.ts +152 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import type * as Types from 'effect/Types';
|
|
3
|
+
import * as EMIDIPort from './EMIDIPort.ts';
|
|
4
|
+
declare const AbortError_base: Schema.TaggedErrorClass<AbortError, "AbortError", {
|
|
5
|
+
readonly _tag: Schema.tag<"AbortError">;
|
|
6
|
+
} & {
|
|
7
|
+
cause: Schema.Struct<{
|
|
8
|
+
name: Schema.Literal<["AbortError"]>;
|
|
9
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
10
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
11
|
+
exact: true;
|
|
12
|
+
}>;
|
|
13
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
14
|
+
exact: true;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Thrown if the document or page is going to be closed due to user navigation.
|
|
20
|
+
*
|
|
21
|
+
* Wraps `DOMException { name: 'AbortError' }`
|
|
22
|
+
*
|
|
23
|
+
* @see {@link https://webidl.spec.whatwg.org/#aborterror|Web IDL spec}
|
|
24
|
+
*/
|
|
25
|
+
export declare class AbortError extends AbortError_base {
|
|
26
|
+
}
|
|
27
|
+
declare const UnderlyingSystemError_base: Schema.TaggedErrorClass<UnderlyingSystemError, "UnderlyingSystemError", {
|
|
28
|
+
readonly _tag: Schema.tag<"UnderlyingSystemError">;
|
|
29
|
+
} & {
|
|
30
|
+
whileAskingForPermissions: Schema.Struct<{
|
|
31
|
+
sysex: Schema.optional<typeof Schema.Boolean>;
|
|
32
|
+
software: Schema.optional<typeof Schema.Boolean>;
|
|
33
|
+
}>;
|
|
34
|
+
cause: Schema.Struct<{
|
|
35
|
+
name: Schema.Literal<["InvalidStateError"]>;
|
|
36
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
37
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
38
|
+
exact: true;
|
|
39
|
+
}>;
|
|
40
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
41
|
+
exact: true;
|
|
42
|
+
}>;
|
|
43
|
+
}>;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Thrown if the underlying system raises any errors when trying to open the
|
|
47
|
+
* port.
|
|
48
|
+
*
|
|
49
|
+
* Wraps `DOMException { name: 'InvalidStateError' }`
|
|
50
|
+
*
|
|
51
|
+
* @see {@link https://webidl.spec.whatwg.org/#invalidstateerror|Web IDL spec}
|
|
52
|
+
*/
|
|
53
|
+
export declare class UnderlyingSystemError extends UnderlyingSystemError_base {
|
|
54
|
+
}
|
|
55
|
+
declare const MIDIAccessNotSupportedError_base: Schema.TaggedErrorClass<MIDIAccessNotSupportedError, "MIDIAccessNotSupportedError", {
|
|
56
|
+
readonly _tag: Schema.tag<"MIDIAccessNotSupportedError">;
|
|
57
|
+
} & {
|
|
58
|
+
whileAskingForPermissions: Schema.Struct<{
|
|
59
|
+
sysex: Schema.optional<typeof Schema.Boolean>;
|
|
60
|
+
software: Schema.optional<typeof Schema.Boolean>;
|
|
61
|
+
}>;
|
|
62
|
+
cause: Schema.Struct<{
|
|
63
|
+
name: Schema.Literal<["ReferenceError", "TypeError", "NotSupportedError"]>;
|
|
64
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
65
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
66
|
+
exact: true;
|
|
67
|
+
}>;
|
|
68
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
69
|
+
exact: true;
|
|
70
|
+
}>;
|
|
71
|
+
}>;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Thrown if the MIDI API, or a certain configuration of it is not supported by
|
|
75
|
+
* the system.
|
|
76
|
+
*
|
|
77
|
+
* Wraps `ReferenceError | TypeError | DOMException { name: 'NotSupportedError' }`
|
|
78
|
+
*
|
|
79
|
+
* @see {@link https://webidl.spec.whatwg.org/#notsupportederror|Web IDL spec}
|
|
80
|
+
*/
|
|
81
|
+
export declare class MIDIAccessNotSupportedError extends MIDIAccessNotSupportedError_base {
|
|
82
|
+
}
|
|
83
|
+
declare const ClearingSendingQueueIsNotSupportedError_base: Schema.TaggedErrorClass<ClearingSendingQueueIsNotSupportedError, "ClearingSendingQueueIsNotSupportedError", {
|
|
84
|
+
readonly _tag: Schema.tag<"ClearingSendingQueueIsNotSupportedError">;
|
|
85
|
+
} & {
|
|
86
|
+
cause: Schema.Struct<{
|
|
87
|
+
name: Schema.Literal<["TypeError", "NotSupportedError"]>;
|
|
88
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
89
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
90
|
+
exact: true;
|
|
91
|
+
}>;
|
|
92
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
93
|
+
exact: true;
|
|
94
|
+
}>;
|
|
95
|
+
}>;
|
|
96
|
+
portId: Schema.BrandSchema<string & EMIDIPort.BothId, string, never>;
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* Thrown on platforms where `.clear()` method of output ports is not supported
|
|
100
|
+
* (currently supported only in Firefox)
|
|
101
|
+
*
|
|
102
|
+
* Wraps `TypeError | DOMException { name: 'NotSupportedError' }`
|
|
103
|
+
*
|
|
104
|
+
* @see {@link https://webidl.spec.whatwg.org/#notsupportederror|Web IDL spec}
|
|
105
|
+
*/
|
|
106
|
+
export declare class ClearingSendingQueueIsNotSupportedError extends ClearingSendingQueueIsNotSupportedError_base {
|
|
107
|
+
}
|
|
108
|
+
declare const UnavailablePortError_base: Schema.TaggedErrorClass<UnavailablePortError, "UnavailablePortError", {
|
|
109
|
+
readonly _tag: Schema.tag<"UnavailablePortError">;
|
|
110
|
+
} & {
|
|
111
|
+
cause: Schema.Struct<{
|
|
112
|
+
name: Schema.Literal<["InvalidAccessError", "NotAllowedError", "InvalidStateError"]>;
|
|
113
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
114
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
115
|
+
exact: true;
|
|
116
|
+
}>;
|
|
117
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
118
|
+
exact: true;
|
|
119
|
+
}>;
|
|
120
|
+
}>;
|
|
121
|
+
portId: Schema.BrandSchema<string & EMIDIPort.BothId, string, never>;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Thrown when attempt to open the port failed because it is unavailable (e.g.
|
|
125
|
+
* is already in use by another process and cannot be opened, or is
|
|
126
|
+
* disconnected).
|
|
127
|
+
*
|
|
128
|
+
* Wraps `DOMException { name: 'InvalidAccessError' | 'NotAllowedError' | 'InvalidStateError' }`
|
|
129
|
+
*
|
|
130
|
+
* @see Web IDL specs: {@link https://webidl.spec.whatwg.org/#invalidaccesserror|InvalidAccessError}, {@link https://webidl.spec.whatwg.org/#notallowederror|NotAllowedError}, {@link https://webidl.spec.whatwg.org/#invalidstateerror|InvalidStateError}
|
|
131
|
+
*/
|
|
132
|
+
export declare class UnavailablePortError extends UnavailablePortError_base {
|
|
133
|
+
}
|
|
134
|
+
declare const DisconnectedPortError_base: Schema.TaggedErrorClass<DisconnectedPortError, "DisconnectedPortError", {
|
|
135
|
+
readonly _tag: Schema.tag<"DisconnectedPortError">;
|
|
136
|
+
} & {
|
|
137
|
+
cause: Schema.Struct<{
|
|
138
|
+
name: Schema.Literal<["InvalidStateError"]>;
|
|
139
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
140
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
141
|
+
exact: true;
|
|
142
|
+
}>;
|
|
143
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
144
|
+
exact: true;
|
|
145
|
+
}>;
|
|
146
|
+
}>;
|
|
147
|
+
portId: Schema.BrandSchema<string & EMIDIPort.BothId, string, never>;
|
|
148
|
+
}>;
|
|
149
|
+
/**
|
|
150
|
+
* Thrown when `.send` operation was called on a disconnected port.
|
|
151
|
+
*
|
|
152
|
+
* Wraps `DOMException { name: 'InvalidStateError' }`
|
|
153
|
+
*
|
|
154
|
+
* @see {@link https://webidl.spec.whatwg.org/#invalidaccesserror|Web IDL spec}
|
|
155
|
+
*/
|
|
156
|
+
export declare class DisconnectedPortError extends DisconnectedPortError_base {
|
|
157
|
+
}
|
|
158
|
+
declare const CantSendSysexMessagesError_base: Schema.TaggedErrorClass<CantSendSysexMessagesError, "CantSendSysexMessagesError", {
|
|
159
|
+
readonly _tag: Schema.tag<"CantSendSysexMessagesError">;
|
|
160
|
+
} & {
|
|
161
|
+
cause: Schema.Struct<{
|
|
162
|
+
name: Schema.Literal<["InvalidAccessError", "NotAllowedError"]>;
|
|
163
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
164
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
165
|
+
exact: true;
|
|
166
|
+
}>;
|
|
167
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
168
|
+
exact: true;
|
|
169
|
+
}>;
|
|
170
|
+
}>;
|
|
171
|
+
portId: Schema.BrandSchema<string & EMIDIPort.BothId, string, never>;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Thrown when trying to send system exclusive message from the access handle,
|
|
175
|
+
* that doesn't have this permission
|
|
176
|
+
*
|
|
177
|
+
* Wraps `DOMException { name: 'InvalidAccessError' | 'NotAllowedError' }`
|
|
178
|
+
*
|
|
179
|
+
* @see Web IDL specs: {@link https://webidl.spec.whatwg.org/#invalidaccesserror|InvalidAccessError}, {@link https://webidl.spec.whatwg.org/#notallowederror|NotAllowedError}
|
|
180
|
+
*/
|
|
181
|
+
export declare class CantSendSysexMessagesError extends CantSendSysexMessagesError_base {
|
|
182
|
+
}
|
|
183
|
+
declare const MIDIAccessNotAllowedError_base: Schema.TaggedErrorClass<MIDIAccessNotAllowedError, "MIDIAccessNotAllowedError", {
|
|
184
|
+
readonly _tag: Schema.tag<"MIDIAccessNotAllowedError">;
|
|
185
|
+
} & {
|
|
186
|
+
whileAskingForPermissions: Schema.Struct<{
|
|
187
|
+
sysex: Schema.optional<typeof Schema.Boolean>;
|
|
188
|
+
software: Schema.optional<typeof Schema.Boolean>;
|
|
189
|
+
}>;
|
|
190
|
+
cause: Schema.Struct<{
|
|
191
|
+
name: Schema.Literal<["NotAllowedError", "SecurityError"]>;
|
|
192
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
193
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
194
|
+
exact: true;
|
|
195
|
+
}>;
|
|
196
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
197
|
+
exact: true;
|
|
198
|
+
}>;
|
|
199
|
+
}>;
|
|
200
|
+
}>;
|
|
201
|
+
/**
|
|
202
|
+
* Thrown if the user, the system or their security settings denied the
|
|
203
|
+
* application from creating an {@linkcode EMIDIAccess.EMIDIAccessInstance} object
|
|
204
|
+
* with the requested {@linkcode EMIDIAccess.RequestMIDIAccessOptions|options}, or if the
|
|
205
|
+
* document is not allowed to use the feature (for example, because of a
|
|
206
|
+
* Permission Policy, or because the user previously denied a permission
|
|
207
|
+
* request).
|
|
208
|
+
*
|
|
209
|
+
* Wraps `DOMException { name: 'NotAllowedError' | 'SecurityError' }`
|
|
210
|
+
*
|
|
211
|
+
* @see Web IDL specs: {@link https://webidl.spec.whatwg.org/#notallowederror|NotAllowedError}, {@link https://webidl.spec.whatwg.org/#securityerror|SecurityError}
|
|
212
|
+
*/
|
|
213
|
+
export declare class MIDIAccessNotAllowedError extends MIDIAccessNotAllowedError_base {
|
|
214
|
+
}
|
|
215
|
+
declare const MalformedMidiMessageError_base: Schema.TaggedErrorClass<MalformedMidiMessageError, "MalformedMidiMessageError", {
|
|
216
|
+
readonly _tag: Schema.tag<"MalformedMidiMessageError">;
|
|
217
|
+
} & {
|
|
218
|
+
cause: Schema.Struct<{
|
|
219
|
+
name: Schema.Literal<["TypeError"]>;
|
|
220
|
+
message: typeof Schema.NonEmptyTrimmedString;
|
|
221
|
+
stack: Schema.optionalWith<typeof Schema.NonEmptyTrimmedString, {
|
|
222
|
+
exact: true;
|
|
223
|
+
}>;
|
|
224
|
+
cause: Schema.optionalWith<typeof Schema.Unknown, {
|
|
225
|
+
exact: true;
|
|
226
|
+
}>;
|
|
227
|
+
}>;
|
|
228
|
+
portId: Schema.BrandSchema<string & EMIDIPort.BothId, string, never>;
|
|
229
|
+
midiMessage: Schema.Array$<typeof Schema.Int>;
|
|
230
|
+
}>;
|
|
231
|
+
/**
|
|
232
|
+
* Thrown when data to be sent is not a valid sequence or does not contain a
|
|
233
|
+
* valid MIDI message
|
|
234
|
+
*
|
|
235
|
+
* Wraps `TypeError`
|
|
236
|
+
*/
|
|
237
|
+
export declare class MalformedMidiMessageError extends MalformedMidiMessageError_base {
|
|
238
|
+
}
|
|
239
|
+
declare const PortNotFoundError_base: Schema.TaggedErrorClass<PortNotFoundError, "PortNotFound", {
|
|
240
|
+
readonly _tag: Schema.tag<"PortNotFound">;
|
|
241
|
+
} & {
|
|
242
|
+
portId: Schema.BrandSchema<string & EMIDIPort.BothId, string, never>;
|
|
243
|
+
}>;
|
|
244
|
+
/**
|
|
245
|
+
* Keep in mind that if port isn't found, it might not mean it's disconnected.
|
|
246
|
+
* For example, virtual ports created by software won't show up in the list of
|
|
247
|
+
* available inputs/outputs of MIDI Access handle with disabled
|
|
248
|
+
* {@linkcode EMIDIAccess.RequestMIDIAccessOptions.software} flag.
|
|
249
|
+
*/
|
|
250
|
+
export declare class PortNotFoundError extends PortNotFoundError_base {
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @internal
|
|
255
|
+
*/
|
|
256
|
+
export declare const remapErrorByName: <TErrorClassUnion extends new (arg: any) => Error>(map: {
|
|
257
|
+
[name: string]: TErrorClassUnion;
|
|
258
|
+
}, absurdMessage: string, rest: Omit<Types.UnionToIntersection<TErrorClassUnion extends new (arg: infer P) => any ? P : never>, "cause">) => (cause: unknown) => InstanceType<TErrorClassUnion>;
|
|
259
|
+
export {};
|
|
260
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/internal/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;AA6B3C;;;;;;GAMG;AACH,qBAAa,UAAW,SAAQ,eAE9B;CAAG;;;;;;;;;;;;;;;;;;;AAEL;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,0BAM1C;CAAG;;;;;;;;;;;;;;;;;;;AAEJ;;;;;;;GAOG;AACH,qBAAa,2BAA4B,SAAQ,gCAQhD;CAAG;;;;;;;;;;;;;;;;AAEJ;;;;;;;GAOG;AACH,qBAAa,uCAAwC,SAAQ,4CAM5D;CAAG;;;;;;;;;;;;;;;;AAEJ;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,yBAYzC;CAAG;;;;;;;;;;;;;;;;AAEJ;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,0BAM1C;CAAG;;;;;;;;;;;;;;;;AAEJ;;;;;;;GAOG;AACH,qBAAa,0BAA2B,SAAQ,+BAM/C;CAAG;;;;;;;;;;;;;;;;;;;AAEJ;;;;;;;;;;;GAWG;AACH,qBAAa,yBAA0B,SAAQ,8BAM9C;CAAG;;;;;;;;;;;;;;;;;AAEJ;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,8BAO9C;CAAG;;;;;;AAEJ;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,sBAGtC;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAExB,gBAAgB,SAAS,KAAK,GAAG,EAAE,GAAG,KAAK,KAAK,EAC/C,KAAK;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAAE,EACzC,eAAe,MAAM,EACrB,MAAM,IAAI,CACR,KAAK,CAAC,mBAAmB,CAEvB,gBAAgB,SAAS,KAAK,GAAG,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,CAC/D,EACD,OAAO,CACR,MAEF,OAAO,OAAO,KAQP,YAAY,CAAC,gBAAgB,CACpC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** biome-ignore-all lint/style/useShorthandFunctionType: It's a nice way to
|
|
2
|
+
* preserve JSDoc comments attached to the function signature */
|
|
3
|
+
import * as EMIDIAccess from '../EMIDIAccess.ts';
|
|
4
|
+
import type * as EMIDIPort from '../EMIDIPort.ts';
|
|
5
|
+
import * as Errors from '../errors.ts';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* If you want to ensure the type of returned port match the type of ID, use
|
|
9
|
+
* type-specific getters {@linkcode getInputByPortIdAndAccess} and
|
|
10
|
+
* {@linkcode getOutputByPortIdAndAccess}, because in runtime, these branded
|
|
11
|
+
* port IDs passed as function arguments, are just strings and cannot ensure
|
|
12
|
+
* soundness
|
|
13
|
+
*/
|
|
14
|
+
export declare const getPortByPortIdAndAccess: GetPortById<"input" | "output", "input" | "output", never, never, Errors.PortNotFoundError, never>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare const getInputByPortIdAndAccess: GetPortById<"input", "input", never, never, Errors.PortNotFoundError, never>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare const getOutputByPortIdAndAccess: GetPortById<"output", "output", never, never, Errors.PortNotFoundError, never>;
|
|
25
|
+
export interface GetPortById<TReturnedPortType extends TTypeOfPortId, TTypeOfPortId extends MIDIPortType, TAccessGettingFallbackError, TAccessGettingFallbackRequirement, TAdditionalError, TAdditionalRequirement> extends EMIDIAccess.GetThingByPortId<EMIDIPort.EMIDIPort<TReturnedPortType>, TTypeOfPortId, TAccessGettingFallbackError, TAccessGettingFallbackRequirement, TAdditionalError | Errors.PortNotFoundError, TAdditionalRequirement> {
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=getPortByPortIdAndAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPortByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../src/internal/getPortByPortId/getPortByPortIdAndAccess.ts"],"names":[],"mappings":"AAAA;gEACgE;AAIhE,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAuDtC;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,oGAGnC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8EAMpC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,gFAMrC,CAAA;AAEF,MAAM,WAAW,WAAW,CAC1B,iBAAiB,SAAS,aAAa,EACvC,aAAa,SAAS,YAAY,EAClC,2BAA2B,EAC3B,iCAAiC,EACjC,gBAAgB,EAChB,sBAAsB,CACtB,SAAQ,WAAW,CAAC,gBAAgB,CAClC,SAAS,CAAC,SAAS,CAAC,iBAAiB,CAAC,EACtC,aAAa,EACb,2BAA2B,EAC3B,iCAAiC,EACjC,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,EAC3C,sBAAsB,CACvB;CAAG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as EMIDIAccess from '../EMIDIAccess.ts';
|
|
2
|
+
import type * as EMIDIInput from '../EMIDIInput.ts';
|
|
3
|
+
import type * as EMIDIOutput from '../EMIDIOutput.ts';
|
|
4
|
+
import type * as EMIDIPort from '../EMIDIPort.ts';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const getPortByPortIdInContext: (id: EMIDIPort.BothId) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"input" | "output">, never, EMIDIAccess.EMIDIAccess, never, never, import("../errors.ts").PortNotFoundError, never>;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare const getInputByPortIdInContext: (id: EMIDIInput.Id) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"input">, never, EMIDIAccess.EMIDIAccess, never, never, import("../errors.ts").PortNotFoundError, never>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare const getOutputByPortIdInContext: (id: EMIDIOutput.Id) => EMIDIAccess.AcquiredThing<EMIDIPort.EMIDIPort<"output">, never, EMIDIAccess.EMIDIAccess, never, never, import("../errors.ts").PortNotFoundError, never>;
|
|
20
|
+
//# sourceMappingURL=getPortByPortIdInContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPortByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/getPortByPortId/getPortByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAGjD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,IAAI,SAAS,CAAC,MAAM,sKACF,CAAA;AAE3D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GAAI,IAAI,UAAU,CAAC,EAAE,2JACC,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,IAAI,WAAW,CAAC,EAAE,4JACA,CAAA"}
|
package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/** biome-ignore-all lint/style/useShorthandFunctionType: It's a nice way to
|
|
2
|
+
* preserve JSDoc comments attached to the function signature */
|
|
3
|
+
import * as EMIDIPort from '../EMIDIPort.ts';
|
|
4
|
+
import * as StreamMaker from '../StreamMaker.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Function to create a stream of remapped {@linkcode MIDIConnectionEvent}s
|
|
7
|
+
*
|
|
8
|
+
* [MDN
|
|
9
|
+
* Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
|
|
10
|
+
*/
|
|
11
|
+
export declare const makePortStateChangesStreamByPort: DualMakeStateChangesStream<MIDIPortType>;
|
|
12
|
+
/**
|
|
13
|
+
* Function to create a stream of remapped {@linkcode MIDIConnectionEvent}s
|
|
14
|
+
*
|
|
15
|
+
* [MDN
|
|
16
|
+
* Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
|
|
17
|
+
*/
|
|
18
|
+
export declare const makeInputStateChangesStreamByPort: DualMakeStateChangesStream<"input">;
|
|
19
|
+
/**
|
|
20
|
+
* Function to create a stream of remapped {@linkcode MIDIConnectionEvent}s
|
|
21
|
+
*
|
|
22
|
+
* [MDN
|
|
23
|
+
* Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
|
|
24
|
+
*/
|
|
25
|
+
export declare const makeOutputStateChangesStreamByPort: DualMakeStateChangesStream<"output">;
|
|
26
|
+
/**
|
|
27
|
+
* A custom type is needed because the port type will be generic, but this is
|
|
28
|
+
* not possible if using just {@linkcode createStreamMakerFrom}
|
|
29
|
+
*/
|
|
30
|
+
export interface DualMakeStateChangesStream<THighLevelPortType extends MIDIPortType = MIDIPortType> extends MakeStateChangesStreamPortFirst<THighLevelPortType>, MakeStateChangesStreamPortLast<THighLevelPortType> {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A custom type is needed because the port type will be generic, but this is
|
|
34
|
+
* not possible if using just {@linkcode createStreamMakerFrom}
|
|
35
|
+
*/
|
|
36
|
+
export interface MakeStateChangesStreamPortFirst<THighLevelPortType extends MIDIPortType = MIDIPortType> {
|
|
37
|
+
/**
|
|
38
|
+
* @param options Passing a value of a `boolean` type is equivalent to setting `options.capture`
|
|
39
|
+
* property
|
|
40
|
+
*/
|
|
41
|
+
<TPortType extends THighLevelPortType, const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined, E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, TPortType>, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>): StateChangesStream<TOnNullStrategy, TPortType, E, R>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A custom type is needed because the port type will be generic, but this is
|
|
45
|
+
* not possible if using just {@linkcode createStreamMakerFrom}
|
|
46
|
+
*/
|
|
47
|
+
export interface MakeStateChangesStreamPortLast<THighLevelPortType extends MIDIPortType = MIDIPortType> {
|
|
48
|
+
/**
|
|
49
|
+
* @param options Passing a value of a `boolean` type is equivalent to setting `options.capture`
|
|
50
|
+
* property
|
|
51
|
+
*/
|
|
52
|
+
<const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>): {
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
<TPortType extends THighLevelPortType, E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, TPortType>): StateChangesStream<TOnNullStrategy, TPortType, E, R>;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A custom type is needed because the port type will be generic, but this is
|
|
62
|
+
* not possible if using just {@linkcode createStreamMakerFrom}
|
|
63
|
+
*/
|
|
64
|
+
export interface StateChangesStream<TOnNullStrategy extends StreamMaker.OnNullStrategy, TPortType extends MIDIPortType, E = never, R = never> extends StreamMaker.BuiltStream<'MIDIPortStateChange', EMIDIPort.EMIDIPort<TPortType>, {
|
|
65
|
+
readonly newState: {
|
|
66
|
+
readonly ofDevice: MIDIPortDeviceState;
|
|
67
|
+
readonly ofConnection: MIDIPortConnectionState;
|
|
68
|
+
} | null;
|
|
69
|
+
}, TOnNullStrategy, E, R> {
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=makePortStateChangesStreamByPort.d.ts.map
|
package/dist-types/src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makePortStateChangesStreamByPort.d.ts","sourceRoot":"","sources":["../../../../src/internal/makePortStateChangesStream/makePortStateChangesStreamByPort.ts"],"names":[],"mappings":"AAAA;gEACgE;AAIhE,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAsChD;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,0CACI,CAAA;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,qCACI,CAAA;AAElD;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,sCACI,CAAA;AAEnD;;;GAGG;AACH,MAAM,WAAW,0BAA0B,CACzC,kBAAkB,SAAS,YAAY,GAAG,YAAY,CACtD,SAAQ,+BAA+B,CAAC,kBAAkB,CAAC,EACzD,8BAA8B,CAAC,kBAAkB,CAAC;CAAG;AAEzD;;;GAGG;AACH,MAAM,WAAW,+BAA+B,CAC9C,kBAAkB,SAAS,YAAY,GAAG,YAAY;IAEtD;;;OAGG;IACH,CACE,SAAS,SAAS,kBAAkB,EACpC,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EACpE,CAAC,GAAG,KAAK,EACT,CAAC,GAAG,KAAK,EAET,eAAe,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,EAC3D,OAAO,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,GACxD,kBAAkB,CAAC,eAAe,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CACxD;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B,CAC7C,kBAAkB,SAAS,YAAY,GAAG,YAAY;IAEtD;;;OAGG;IACH,CAAC,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EACnE,OAAO,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,GACxD;QACD;;;WAGG;QACH,CAAC,SAAS,SAAS,kBAAkB,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,EACzD,eAAe,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,GAC1D,kBAAkB,CAAC,eAAe,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;KACxD,CAAA;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CACjC,eAAe,SAAS,WAAW,CAAC,cAAc,EAClD,SAAS,SAAS,YAAY,EAC9B,CAAC,GAAG,KAAK,EACT,CAAC,GAAG,KAAK,CACT,SAAQ,WAAW,CAAC,WAAW,CAC7B,qBAAqB,EACrB,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,EAC9B;IACE,QAAQ,CAAC,QAAQ,EAAE;QACjB,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAA;QACtC,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAA;KAC/C,GAAG,IAAI,CAAA;CACT,EACD,eAAe,EACf,CAAC,EACD,CAAC,CACF;CAAG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const makeInputStateChangesStreamByPortIdAndAccess: () => never;
|
|
2
|
+
export declare const makeOutputStateChangesStreamByPortIdAndAccess: () => never;
|
|
3
|
+
export declare const makePortStateChangesStreamByPortIdAndAccess: () => never;
|
|
4
|
+
//# sourceMappingURL=makePortStateChangesStreamByPortIdAndAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makePortStateChangesStreamByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdAndAccess.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,4CAA4C,aAExD,CAAA;AAGD,eAAO,MAAM,6CAA6C,aAEzD,CAAA;AAGD,eAAO,MAAM,2CAA2C,aAEvD,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as EMIDIInput from '../../EMIDIInput.ts';
|
|
2
|
+
import type * as EMIDIOutput from '../../EMIDIOutput.ts';
|
|
3
|
+
import type * as EMIDIPort from '../../EMIDIPort.ts';
|
|
4
|
+
import type * as StreamMaker from '../StreamMaker.ts';
|
|
5
|
+
/**
|
|
6
|
+
* @param options Passing a value of a `boolean` type is equivalent to setting
|
|
7
|
+
* `options.capture` property
|
|
8
|
+
*/
|
|
9
|
+
export declare const makePortStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIPort.BothId, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "input" | "output", import("../errors.ts").PortNotFoundError, import("../EMIDIAccess.ts").EMIDIAccess>;
|
|
10
|
+
/**
|
|
11
|
+
* @param options Passing a value of a `boolean` type is equivalent to setting
|
|
12
|
+
* `options.capture` property
|
|
13
|
+
*/
|
|
14
|
+
export declare const makeInputStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIInput.Id, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "input", import("../errors.ts").PortNotFoundError, import("../EMIDIAccess.ts").EMIDIAccess>;
|
|
15
|
+
/**
|
|
16
|
+
* @param options Passing a value of a `boolean` type is equivalent to setting
|
|
17
|
+
* `options.capture` property
|
|
18
|
+
*/
|
|
19
|
+
export declare const makeOutputStateChangesStreamByPortIdInContext: <const TOnNullStrategy extends StreamMaker.OnNullStrategy = undefined>(id: EMIDIOutput.Id, options?: StreamMaker.StreamMakerOptions<TOnNullStrategy>) => EMIDIPort.StateChangesStream<TOnNullStrategy, "output", import("../errors.ts").PortNotFoundError, import("../EMIDIAccess.ts").EMIDIAccess>;
|
|
20
|
+
//# sourceMappingURL=makePortStateChangesStreamByPortIdInContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makePortStateChangesStreamByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/makePortStateChangesStream/makePortStateChangesStreamByPortIdInContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAA;AAGrD;;;GAGG;AACH,eAAO,MAAM,2CAA2C,GACtD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,SAAS,CAAC,MAAM,EACpB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,yJAKxD,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,4CAA4C,GACvD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,UAAU,CAAC,EAAE,EACjB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,8IAKxD,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,6CAA6C,GACxD,KAAK,CAAC,eAAe,SAAS,WAAW,CAAC,cAAc,GAAG,SAAS,EAEpE,IAAI,WAAW,CAAC,EAAE,EAClB,UAAU,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,+IAKxD,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as Util from '../../util.ts';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export declare const isPortDeviceConnectedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, MIDIPortType>) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainDeviceState", "connected">, E, R>;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const isPortDeviceDisconnectedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, MIDIPortType>) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainDeviceState", "disconnected">, E, R>;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare const isPortConnectionOpenByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, MIDIPortType>) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "open">, E, R>;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare const isPortConnectionPendingByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, MIDIPortType>) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "pending">, E, R>;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare const isPortConnectionClosedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, MIDIPortType>) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "closed">, E, R>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare const isInputDeviceConnectedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "input">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainDeviceState", "connected">, E, R>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare const isInputDeviceDisconnectedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "input">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainDeviceState", "disconnected">, E, R>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare const isInputConnectionOpenByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "input">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "open">, E, R>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export declare const isInputConnectionPendingByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "input">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "pending">, E, R>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare const isInputConnectionClosedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "input">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "closed">, E, R>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export declare const isOutputDeviceConnectedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "output">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainDeviceState", "connected">, E, R>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export declare const isOutputDeviceDisconnectedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "output">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainDeviceState", "disconnected">, E, R>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export declare const isOutputConnectionOpenByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "output">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "open">, E, R>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export declare const isOutputConnectionPendingByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "output">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "pending">, E, R>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare const isOutputConnectionClosedByPort: <E = never, R = never>(polymorphicPort: import("../../EMIDIPort.ts").PolymorphicPort<E, R, "output">) => import("effect/Effect").Effect<Util.IsEqualFlag<"isCertainConnectionState", "closed">, E, R>;
|
|
62
|
+
//# sourceMappingURL=doesMutablePortPropertyHaveSpecificValueByPort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPort.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPort.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AAGrC;;GAEG;AACH,eAAO,MAAM,2BAA2B,0MAGvC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,6MAG1C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,yMAGtC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,4MAGzC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B,2MAGxC,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,4BAA4B,qMAGxC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B,wMAG3C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,oMAGvC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,uMAG1C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,sMAGzC,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,6BAA6B,sMAGzC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,yMAG5C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B,qMAGxC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B,wMAG3C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,uMAG1C,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const isInputConnectionClosedByPortIdAndAccess: () => never;
|
|
2
|
+
export declare const isInputConnectionOpenByPortIdAndAccess: () => never;
|
|
3
|
+
export declare const isInputConnectionPendingByPortIdAndAccess: () => never;
|
|
4
|
+
export declare const isInputDeviceConnectedByPortIdAndAccess: () => never;
|
|
5
|
+
export declare const isInputDeviceDisconnectedByPortIdAndAccess: () => never;
|
|
6
|
+
export declare const isOutputConnectionClosedByPortIdAndAccess: () => never;
|
|
7
|
+
export declare const isOutputConnectionOpenByPortIdAndAccess: () => never;
|
|
8
|
+
export declare const isOutputConnectionPendingByPortIdAndAccess: () => never;
|
|
9
|
+
export declare const isOutputDeviceConnectedByPortIdAndAccess: () => never;
|
|
10
|
+
export declare const isOutputDeviceDisconnectedByPortIdAndAccess: () => never;
|
|
11
|
+
export declare const isPortConnectionClosedByPortIdAndAccess: () => never;
|
|
12
|
+
export declare const isPortConnectionOpenByPortIdAndAccess: () => never;
|
|
13
|
+
export declare const isPortConnectionPendingByPortIdAndAccess: () => never;
|
|
14
|
+
export declare const isPortDeviceConnectedByPortIdAndAccess: () => never;
|
|
15
|
+
export declare const isPortDeviceDisconnectedByPortIdAndAccess: () => never;
|
|
16
|
+
//# sourceMappingURL=doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdAndAccess.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,sCAAsC,aAElD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA;AAGD,eAAO,MAAM,uCAAuC,aAEnD,CAAA;AAGD,eAAO,MAAM,0CAA0C,aAEtD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA;AAGD,eAAO,MAAM,uCAAuC,aAEnD,CAAA;AAGD,eAAO,MAAM,0CAA0C,aAEtD,CAAA;AAGD,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,2CAA2C,aAEvD,CAAA;AAGD,eAAO,MAAM,uCAAuC,aAEnD,CAAA;AAGD,eAAO,MAAM,qCAAqC,aAEjD,CAAA;AAGD,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,sCAAsC,aAElD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const isInputConnectionClosedByPortIdInContext: () => never;
|
|
2
|
+
export declare const isInputConnectionOpenByPortIdInContext: () => never;
|
|
3
|
+
export declare const isInputConnectionPendingByPortIdInContext: () => never;
|
|
4
|
+
export declare const isInputDeviceConnectedByPortIdInContext: () => never;
|
|
5
|
+
export declare const isInputDeviceDisconnectedByPortIdInContext: () => never;
|
|
6
|
+
export declare const isOutputConnectionClosedByPortIdInContext: () => never;
|
|
7
|
+
export declare const isOutputConnectionOpenByPortIdInContext: () => never;
|
|
8
|
+
export declare const isOutputConnectionPendingByPortIdInContext: () => never;
|
|
9
|
+
export declare const isOutputDeviceConnectedByPortIdInContext: () => never;
|
|
10
|
+
export declare const isOutputDeviceDisconnectedByPortIdInContext: () => never;
|
|
11
|
+
export declare const isPortConnectionClosedByPortIdInContext: () => never;
|
|
12
|
+
export declare const isPortConnectionOpenByPortIdInContext: () => never;
|
|
13
|
+
export declare const isPortConnectionPendingByPortIdInContext: () => never;
|
|
14
|
+
export declare const isPortDeviceConnectedByPortIdInContext: () => never;
|
|
15
|
+
export declare const isPortDeviceDisconnectedByPortIdInContext: () => never;
|
|
16
|
+
//# sourceMappingURL=doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doesMutablePortPropertyHaveSpecificValueByPortIdInContext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/doesMutablePortPropertyHaveSpecificValue/doesMutablePortPropertyHaveSpecificValueByPortIdInContext.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,sCAAsC,aAElD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA;AAGD,eAAO,MAAM,uCAAuC,aAEnD,CAAA;AAGD,eAAO,MAAM,0CAA0C,aAEtD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA;AAGD,eAAO,MAAM,uCAAuC,aAEnD,CAAA;AAGD,eAAO,MAAM,0CAA0C,aAEtD,CAAA;AAGD,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,2CAA2C,aAEvD,CAAA;AAGD,eAAO,MAAM,uCAAuC,aAEnD,CAAA;AAGD,eAAO,MAAM,qCAAqC,aAEjD,CAAA;AAGD,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,sCAAsC,aAElD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import type * as EMIDIPort from '../../EMIDIPort.ts';
|
|
3
|
+
/**
|
|
4
|
+
* @returns A state of the hardware connection between the OS and the device
|
|
5
|
+
* ({@linkcode MIDIPortDeviceState}). Because it can change over time, it's
|
|
6
|
+
* wrapped in effect. It's taken from the {@linkcode MIDIPort.state|state}
|
|
7
|
+
* read-only property of the {@linkcode MIDIPort} interface ([MDN
|
|
8
|
+
* Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state)).
|
|
9
|
+
*/
|
|
10
|
+
export declare const getPortDeviceStateByPort: <E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, MIDIPortType>) => Effect.Effect<MIDIPortDeviceState, E, R>;
|
|
11
|
+
/**
|
|
12
|
+
* @returns A state of the connection between the browser's tab and OS
|
|
13
|
+
* abstraction of the device ({@linkcode MIDIPortConnectionState}). Because it
|
|
14
|
+
* can change over time, it's wrapped in effect. It's taken from the
|
|
15
|
+
* {@linkcode MIDIPort.connection|connection} read-only property of the
|
|
16
|
+
* {@linkcode MIDIPort} interface ([MDN
|
|
17
|
+
* Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection)).
|
|
18
|
+
*/
|
|
19
|
+
export declare const getPortConnectionStateByPort: <E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, MIDIPortType>) => Effect.Effect<MIDIPortConnectionState, E, R>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare const getInputDeviceStateByPort: <E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, "input">) => Effect.Effect<MIDIPortDeviceState, E, R>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare const getInputConnectionStateByPort: <E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, "input">) => Effect.Effect<MIDIPortConnectionState, E, R>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare const getOutputDeviceStateByPort: <E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, "output">) => Effect.Effect<MIDIPortDeviceState, E, R>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare const getOutputConnectionStateByPort: <E = never, R = never>(polymorphicPort: EMIDIPort.PolymorphicPort<E, R, "output">) => Effect.Effect<MIDIPortConnectionState, E, R>;
|
|
36
|
+
//# sourceMappingURL=getMutablePortPropertyByPort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMutablePortPropertyByPort.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AAqBpD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GAhBlC,CAAC,UAAU,CAAC,qHAgBsD,CAAA;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,GA1BtC,CAAC,UAAU,CAAC,yHA0B+D,CAAA;AAE9E;;GAEG;AACH,eAAO,MAAM,yBAAyB,GA/BnC,CAAC,UAAU,CAAC,gHA+BgE,CAAA;AAE/E;;GAEG;AACH,eAAO,MAAM,6BAA6B,GApCvC,CAAC,UAAU,CAAC,oHAqC8B,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,0BAA0B,GA1CpC,CAAC,UAAU,CAAC,iHA2C0B,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,8BAA8B,GAhDxC,CAAC,UAAU,CAAC,qHAiD+B,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import * as EMIDIAccess from '../../EMIDIAccess.ts';
|
|
3
|
+
import type * as EMIDIPort from '../../EMIDIPort.ts';
|
|
4
|
+
import * as Errors from '../../errors.ts';
|
|
5
|
+
import type * as Util from '../../util.ts';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare const getPortDeviceStateByPortIdAndAccess: <TE = never, TR = never>(polymorphicAccess: Util.PolymorphicEffect<EMIDIAccess.EMIDIAccessInstance, TE, TR>, id: EMIDIPort.BothId) => Effect.Effect<MIDIPortDeviceState, Exclude<TE, {
|
|
11
|
+
_tag: "PortNotFound";
|
|
12
|
+
}>, TR>;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare const getPortConnectionStateByPortIdAndAccess: <TE = never, TR = never>(polymorphicAccess: Util.PolymorphicEffect<EMIDIAccess.EMIDIAccessInstance, TE, TR>, id: EMIDIPort.BothId) => Effect.Effect<MIDIPortConnectionState, Errors.PortNotFoundError | TE, TR>;
|
|
18
|
+
export declare const getInputConnectionStateByPortIdAndAccess: () => never;
|
|
19
|
+
export declare const getInputDeviceStateByPortIdAndAccess: () => never;
|
|
20
|
+
export declare const getOutputConnectionStateByPortIdAndAccess: () => never;
|
|
21
|
+
export declare const getOutputDeviceStateByPortIdAndAccess: () => never;
|
|
22
|
+
//# sourceMappingURL=getMutablePortPropertyByPortIdAndAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMutablePortPropertyByPortIdAndAccess.d.ts","sourceRoot":"","sources":["../../../../../src/internal/mutablePropertyTools/getMutablePortProperty/getMutablePortPropertyByPortIdAndAccess.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAIvC,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,KAAK,IAAI,MAAM,eAAe,CAAA;AA0C1C;;;GAGG;AACH,eAAO,MAAM,mCAAmC,GAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAK,EACxE,mBAAmB,IAAI,CAAC,iBAAiB,CACvC,WAAW,CAAC,mBAAmB,EAC/B,EAAE,EACF,EAAE,CACH,EACD,IAAI,SAAS,CAAC,MAAM;;OAWnB,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,uCAAuC,GAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAK,EAC5E,mBAAmB,IAAI,CAAC,iBAAiB,CACvC,WAAW,CAAC,mBAAmB,EAC/B,EAAE,EACF,EAAE,CACH,EACD,IAAI,SAAS,CAAC,MAAM,8EAMnB,CAAA;AAGH,eAAO,MAAM,wCAAwC,aAEpD,CAAA;AAGD,eAAO,MAAM,oCAAoC,aAEhD,CAAA;AAGD,eAAO,MAAM,yCAAyC,aAErD,CAAA;AAGD,eAAO,MAAM,qCAAqC,aAEjD,CAAA"}
|