( value: any )
| 501 | * adds the arrayBuffer() method type because it is available and used at runtime |
| 502 | */ |
| 503 | export const isBlobLike = ( |
| 504 | value: any |
| 505 | ): value is BlobLike & { arrayBuffer(): Promise<ArrayBuffer> } => |
| 506 | value != null && |
| 507 | typeof value === "object" && |
| 508 | typeof value.size === "number" && |
| 509 | typeof value.type === "string" && |
| 510 | typeof value.text === "function" && |
| 511 | typeof value.slice === "function" && |
| 512 | typeof value.arrayBuffer === "function"; |
| 513 | |
| 514 | export const isFsReadStream = (value: any): value is Readable => value instanceof Readable; |
| 515 |
no outgoing calls
no test coverage detected
searching dependent graphs…