@@ -10,7 +10,6 @@ import { isPlainObject } from "./is-plain-object.js";
10
10
import { safeParse } from "./schemas.js" ;
11
11
12
12
export type Encoding =
13
- | "jsonl"
14
13
| "json"
15
14
| "text"
16
15
| "bytes"
@@ -20,7 +19,6 @@ export type Encoding =
20
19
| "fail" ;
21
20
22
21
const DEFAULT_CONTENT_TYPES : Record < Encoding , string > = {
23
- jsonl : "application/jsonl" ,
24
22
json : "application/json" ,
25
23
text : "text/plain" ,
26
24
bytes : "application/octet-stream" ,
@@ -74,21 +72,6 @@ export function json<T>(
74
72
return { ...options , enc : "json" , codes, schema } ;
75
73
}
76
74
77
- export function jsonl < T > (
78
- codes : StatusCodePredicate ,
79
- schema : Schema < T > ,
80
- options ?: MatchOptions ,
81
- ) : ValueMatcher < T > {
82
- return { ...options , enc : "jsonl" , codes, schema } ;
83
- }
84
-
85
- export function jsonlErr < E > (
86
- codes : StatusCodePredicate ,
87
- schema : Schema < E > ,
88
- options ?: MatchOptions ,
89
- ) : ErrorMatcher < E > {
90
- return { ...options , err : true , enc : "jsonl" , codes, schema } ;
91
- }
92
75
export function textErr < E > (
93
76
codes : StatusCodePredicate ,
94
77
schema : Schema < E > ,
@@ -221,9 +204,6 @@ export function match<T, E>(
221
204
case "json" :
222
205
raw = await response . json ( ) ;
223
206
break ;
224
- case "jsonl" :
225
- raw = response . body ;
226
- break ;
227
207
case "bytes" :
228
208
raw = new Uint8Array ( await response . arrayBuffer ( ) ) ;
229
209
break ;
0 commit comments