UNPKG

cnpmcore

Version:

Private NPM Registry for Enterprise

20 lines (19 loc) 705 B
import type { EasyData } from '../util/EntityUtil.ts'; import { Entity, type EntityData } from './Entity.ts'; import { type DIST_NAMES } from './Package.ts'; interface ProxyCacheData extends EntityData { fullname: string; fileType: DIST_NAMES; version?: string; } export type CreateProxyCacheData = Omit<EasyData<ProxyCacheData, 'id'>, 'id' | 'filePath'>; export declare class ProxyCache extends Entity { readonly fullname: string; readonly fileType: DIST_NAMES; readonly filePath: string; readonly version?: string; constructor(data: ProxyCacheData); static create(data: CreateProxyCacheData): ProxyCache; static update(data: ProxyCache): ProxyCache; } export {};