@tanstack/router-core 1.97.24 → 1.97.25
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.
|
@@ -10,6 +10,6 @@ export type SerializerStringifyBy<T, TSerializable> = T extends TSerializable ?
|
|
|
10
10
|
export type SerializerParseBy<T, TSerializable> = T extends TSerializable ? T : T extends React.JSX.Element ? ReadableStream : {
|
|
11
11
|
[K in keyof T]: SerializerParseBy<T[K], TSerializable>;
|
|
12
12
|
};
|
|
13
|
-
export type Serializable = Date | undefined | Error | FormData;
|
|
13
|
+
export type Serializable = Date | undefined | Error | FormData | Response;
|
|
14
14
|
export type SerializerStringify<T> = SerializerStringifyBy<T, Serializable>;
|
|
15
15
|
export type SerializerParse<T> = SerializerParseBy<T, Serializable>;
|
package/dist/esm/serializer.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ export type SerializerStringifyBy<T, TSerializable> = T extends TSerializable ?
|
|
|
10
10
|
export type SerializerParseBy<T, TSerializable> = T extends TSerializable ? T : T extends React.JSX.Element ? ReadableStream : {
|
|
11
11
|
[K in keyof T]: SerializerParseBy<T[K], TSerializable>;
|
|
12
12
|
};
|
|
13
|
-
export type Serializable = Date | undefined | Error | FormData;
|
|
13
|
+
export type Serializable = Date | undefined | Error | FormData | Response;
|
|
14
14
|
export type SerializerStringify<T> = SerializerStringifyBy<T, Serializable>;
|
|
15
15
|
export type SerializerParse<T> = SerializerParseBy<T, Serializable>;
|
package/package.json
CHANGED
package/src/serializer.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type SerializerParseBy<T, TSerializable> = T extends TSerializable
|
|
|
17
17
|
? ReadableStream
|
|
18
18
|
: { [K in keyof T]: SerializerParseBy<T[K], TSerializable> }
|
|
19
19
|
|
|
20
|
-
export type Serializable = Date | undefined | Error | FormData
|
|
20
|
+
export type Serializable = Date | undefined | Error | FormData | Response
|
|
21
21
|
|
|
22
22
|
export type SerializerStringify<T> = SerializerStringifyBy<T, Serializable>
|
|
23
23
|
|