File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/kit/test/typings Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,6 @@ export const readable_stream_body: RequestHandler = () => {
5151 } ;
5252} ;
5353
54- // valid - body instance of stream.Readable should be allowed
55- export const stream_readable_body : RequestHandler = async ( ) => {
56- const { Readable } = await import ( 'stream' ) ;
57- return {
58- body : new Readable ( )
59- } ;
60- } ;
61-
6254// valid - different header pairs should be allowed
6355export const differential_headers_assignment : RequestHandler = ( ) => {
6456 if ( Math . random ( ) < 0.5 ) {
@@ -193,3 +185,11 @@ export const error_nested_instances: RequestHandler = () => {
193185 body : { typed : new Uint8Array ( ) }
194186 } ;
195187} ;
188+
189+ // @ts -expect-error - instances cannot be nested
190+ export const stream_readable_body : RequestHandler = async ( ) => {
191+ const { Readable } = await import ( 'stream' ) ;
192+ return {
193+ body : new Readable ( )
194+ } ;
195+ } ;
You can’t perform that action at this time.
0 commit comments