PickerFlows — @gj-kit/expo-media
A public interface from @gj-kit/expo-media/core. The signature below is taken directly from the 0.6.1 release declaration.
Verified import example
Section titled “Verified import example”import { PickerFlows } from '@gj-kit/expo-media/core';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”interface PickerFlows<TAsset, TCollectionId extends string = string> { pick(options?: { readonly max?: number | undefined; readonly kinds?: readonly MediaKind[] | undefined; } | undefined): Promise<readonly PickedAsset[]>; pickAndUpload(options?: PickUploadOptions<TCollectionId> | undefined): Promise<readonly UploadResult<TAsset>[]>; /** * ⚠ 항상 **최대 1건**이다(전신 uploader.ts:1008 `result.assets.slice(0, 1)`). * 무시되는 옵션은 그 자체로 함정이므로 옵션 타입에서 `max`를 Omit한다(§5.4.1-12). */ captureAndUpload(options?: (Omit<PickUploadOptions<TCollectionId>, 'max'> & { readonly kind?: MediaKind | undefined; }) | undefined): Promise<readonly UploadResult<TAsset>[]>;}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.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-media - Version:
0.6.1 - Public entry:
./core - Source: GitHub