Skip to content

FileStat — @gj-kit/expo-media

A public type from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { FileStat } from '@gj-kit/expo-media';
/**
* 전신의 `{exists, isDirectory, size}`를 판별 유니언으로 교체.
* `info.exists && !info.isDirectory ? info.size : 0` 패턴 5중복이 좁히기 한 번으로 소멸한다
* (§7 하드닝 3).
*/
type FileStat = {
readonly kind: 'file';
readonly sizeBytes: number;
} | {
readonly kind: 'directory';
} | {
readonly kind: 'missing';
};

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub