@@ -10,7 +10,6 @@ import { isPlainObject } from "./is-plain-object.js";
1010import { safeParse } from "./schemas.js" ;
1111
1212export type Encoding =
13- | "jsonl"
1413 | "json"
1514 | "text"
1615 | "bytes"
@@ -20,7 +19,6 @@ export type Encoding =
2019 | "fail" ;
2120
2221const DEFAULT_CONTENT_TYPES : Record < Encoding , string > = {
23- jsonl : "application/jsonl" ,
2422 json : "application/json" ,
2523 text : "text/plain" ,
2624 bytes : "application/octet-stream" ,
@@ -74,21 +72,6 @@ export function json<T>(
7472 return { ...options , enc : "json" , codes, schema } ;
7573}
7674
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- }
9275export function textErr < E > (
9376 codes : StatusCodePredicate ,
9477 schema : Schema < E > ,
@@ -221,9 +204,6 @@ export function match<T, E>(
221204 case "json" :
222205 raw = await response . json ( ) ;
223206 break ;
224- case "jsonl" :
225- raw = response . body ;
226- break ;
227207 case "bytes" :
228208 raw = new Uint8Array ( await response . arrayBuffer ( ) ) ;
229209 break ;
0 commit comments