@rbxts/tether 1.3.18 → 1.3.19
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/out/structs.d.ts +2 -2
- package/package.json +1 -1
package/out/structs.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type MessageEvent = (...packets: SerializedPacket[]) => void;
|
|
|
17
17
|
type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24];
|
|
18
18
|
type ReplaceByMapWithDepth<T, Depth extends number = 24> = [
|
|
19
19
|
Depth
|
|
20
|
-
] extends [never] ? T : T extends Vector ? Vector3 : T extends Transform ? CFrame : T extends String ? string : T extends {
|
|
20
|
+
] extends [never] ? T : T extends Callback ? T : T extends Vector ? Vector3 : T extends Transform ? CFrame : T extends String ? string : T extends {
|
|
21
21
|
_packed: [infer V];
|
|
22
22
|
} ? ReplaceByMapWithDepth<V, Prev[Depth]> : T extends {
|
|
23
23
|
_list: [infer V];
|
|
@@ -27,7 +27,7 @@ type ReplaceByMapWithDepth<T, Depth extends number = 24> = [
|
|
|
27
27
|
_set: [infer V];
|
|
28
28
|
} ? Set<ReplaceByMapWithDepth<V, Prev[Depth]>> : T extends {
|
|
29
29
|
_map: [infer K, infer V];
|
|
30
|
-
} ? Map<ReplaceByMapWithDepth<K, Prev[Depth]>, ReplaceByMapWithDepth<V, Prev[Depth]>> : T extends u8 | u16 | u24 | u32 | i8 | i16 | i24 | i32 | f16 | f24 | f32 | f64 ? number : T extends any[] ? ReplaceByMapWithDepth<T[number], Prev[Depth]>[] : T extends object ? {
|
|
30
|
+
} ? Map<ReplaceByMapWithDepth<K, Prev[Depth]>, ReplaceByMapWithDepth<V, Prev[Depth]>> : T extends u8 | u16 | u24 | u32 | i8 | i16 | i24 | i32 | f16 | f24 | f32 | f64 ? number : T extends any[] ? ReplaceByMapWithDepth<T[number], Prev[Depth]>[] : T extends ReadonlyMap<unknown, unknown> ? T : T extends object ? {
|
|
31
31
|
[K in keyof T]: ReplaceByMapWithDepth<T[K], Prev[Depth]>;
|
|
32
32
|
} : T;
|
|
33
33
|
export interface MessageMetadata<MessageData, Kind extends keyof MessageData> {
|