@types/node-media-server 2.3.7 → 2.3.8

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.
@@ -106,7 +106,14 @@ declare class NodeMediaServer {
106
106
  run(): void;
107
107
  on(eventName: string, listener: (id: string, StreamPath: string, args: object) => void): void;
108
108
  stop(): void;
109
- getSession(id: string): Map<string, unknown>;
109
+ /**
110
+ * Looks up a single session by its id.
111
+ *
112
+ * The returned value is one of the internal session objects (`NodeRtmpSession`,
113
+ * `NodeFlvSession`, `NodeRelaySession`, ...), which this package does not
114
+ * declare, or `undefined` when no session is registered for `id`.
115
+ */
116
+ getSession(id: string): unknown;
110
117
  }
111
118
 
112
119
  export = NodeMediaServer;
@@ -114,7 +121,7 @@ export = NodeMediaServer;
114
121
  ````
115
122
 
116
123
  ### Additional Details
117
- * Last updated: Sat, 24 Aug 2024 01:33:54 GMT
124
+ * Last updated: Wed, 09 Sep 2026 17:32:37 GMT
118
125
  * Dependencies: none
119
126
 
120
127
  # Credits
@@ -96,7 +96,14 @@ declare class NodeMediaServer {
96
96
  run(): void;
97
97
  on(eventName: string, listener: (id: string, StreamPath: string, args: object) => void): void;
98
98
  stop(): void;
99
- getSession(id: string): Map<string, unknown>;
99
+ /**
100
+ * Looks up a single session by its id.
101
+ *
102
+ * The returned value is one of the internal session objects (`NodeRtmpSession`,
103
+ * `NodeFlvSession`, `NodeRelaySession`, ...), which this package does not
104
+ * declare, or `undefined` when no session is registered for `id`.
105
+ */
106
+ getSession(id: string): unknown;
100
107
  }
101
108
 
102
109
  export = NodeMediaServer;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node-media-server",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "TypeScript definitions for node-media-server",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-media-server",
6
6
  "license": "MIT",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "scripts": {},
27
27
  "dependencies": {},
28
- "typesPublisherContentHash": "9bf7685ec6ee420eb4440a90e92d9836b6cc2d6f22ffb62668c45bea39ea2436",
29
- "typeScriptVersion": "4.8"
28
+ "peerDependencies": {},
29
+ "typesPublisherContentHash": "f572e5170fb5124bd76eb80dce864e9c63b43142fbc66e25839c7b629d5f9b2c",
30
+ "typeScriptVersion": "5.6"
30
31
  }