Files
toolkit/packages/cache/src/internal/contracts.d.ts
T

34 lines
675 B
TypeScript
Raw Normal View History

import {CompressionMethod} from './constants'
2022-03-31 10:41:54 +00:00
import {ITypedResponse} from '@actions/http-client/interfaces'
2022-03-31 09:42:59 +00:00
export interface ITypedResponseWithErrorMessage<T> extends ITypedResponse<T> {
message?: string
typeKey?: string
}
export interface ArtifactCacheEntry {
cacheKey?: string
scope?: string
creationTime?: string
archiveLocation?: string
}
export interface CommitCacheRequest {
size: number
}
export interface ReserveCacheRequest {
key: string
version?: string
2022-03-29 22:17:04 +00:00
cacheSize?: number
}
export interface ReserveCacheResponse {
cacheId: number
}
2020-05-12 14:47:31 -04:00
export interface InternalCacheOptions {
compressionMethod?: CompressionMethod
2022-03-29 22:17:04 +00:00
cacheSize?: number
}