UNPKG

memfs

Version:

In-memory file-system with Node's fs API.

11 lines (10 loc) 370 B
import type { CrudResourceInfo } from '../crud/types'; export interface CasApi { put(blob: Uint8Array): Promise<string>; get(hash: string, options?: CasGetOptions): Promise<Uint8Array>; del(hash: string, silent?: boolean): Promise<void>; info(hash: string): Promise<CrudResourceInfo>; } export interface CasGetOptions { skipVerification?: boolean; }