effect-io-ai

Package: effect
Module: FileSystem

FileSystem.isFile

Returns true if a value is a File handle by checking for the FileTypeId marker.

When to use

Use when accepting an unknown value and you need to narrow it to a File before calling file-handle operations.

Details

This is a structural marker check. It does not validate the marker value or the shape of the file handle.

See

Signature

declare const isFile: (u: unknown) => u is File

Source

Since v4.0.0