Toolbox-XToolbox-X
GuardsDOM Guards

Check OriginFileObj

Checks if a value is an OriginFileObj for Ant-Design Upload component.

isOriginFileObj

Checks if a value is an OriginFileObj (extended File with UID). For Ant-Design Upload component.

Function Signature

isOriginFileObj(value: unknown): value is OriginFileObj

Type Definition

/** * Represents the original file object before any modifications. */
interface OriginFileObj extends File {
 /** Unique identifier for the original file. */
 uid: string;
}

Validation Rules

  • Must be an object
  • Must have string uid property
  • Inherits all File properties

Example

playground.ts

Last updated: Tue, May 26, 2026 04:14:18PM (UTC)

On this page