File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { fileResolver } from "./resolvers/file.js";
1313
1414interface ResolvedInput {
1515 path : string ;
16- schema : string | JSONSchema | Buffer < ArrayBufferLike > | Awaited < JSONSchema > | undefined ;
16+ schema : string | JSONSchema | Buffer | Awaited < JSONSchema > | undefined ;
1717 type : 'file' | 'json' | 'url' ;
1818}
1919
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const BINARY_REGEXP = /\.(jpeg|jpg|gif|png|bmp|ico)$/i;
55
66export const binaryParser : Plugin = {
77 canHandle : ( file : FileInfo ) => Buffer . isBuffer ( file . data ) && BINARY_REGEXP . test ( file . url ) ,
8- handler : ( file : FileInfo ) : Buffer < ArrayBufferLike > => Buffer . isBuffer ( file . data )
8+ handler : ( file : FileInfo ) : Buffer => Buffer . isBuffer ( file . data )
99 ? file . data
1010 // This will reject if data is anything other than a string or typed array
1111 : Buffer . from ( file . data ) ,
You can’t perform that action at this time.
0 commit comments