aa676f3cc7
We moved `@actions/http-client` to be part of the toolkit in https://github.com/actions/toolkit/pull/1062. We also made some breaking changes to exported types and released v2. The biggest change in terms of lines of code affected was to get rid of the `I-` prefix for interfaces since TypeScript doesn't follow this convention. I bumped the patch version of all packages except for `tool-cache`, where I bumped the major version. The rationale is explained in the release notes for that package.
34 lines
711 B
TypeScript
34 lines
711 B
TypeScript
import {CompressionMethod} from './constants'
|
|
import {TypedResponse} from '@actions/http-client/lib/interfaces'
|
|
import {HttpClientError} from '@actions/http-client'
|
|
|
|
export interface ITypedResponseWithError<T> extends TypedResponse<T> {
|
|
error?: HttpClientError
|
|
}
|
|
|
|
export interface ArtifactCacheEntry {
|
|
cacheKey?: string
|
|
scope?: string
|
|
creationTime?: string
|
|
archiveLocation?: string
|
|
}
|
|
|
|
export interface CommitCacheRequest {
|
|
size: number
|
|
}
|
|
|
|
export interface ReserveCacheRequest {
|
|
key: string
|
|
version?: string
|
|
cacheSize?: number
|
|
}
|
|
|
|
export interface ReserveCacheResponse {
|
|
cacheId: number
|
|
}
|
|
|
|
export interface InternalCacheOptions {
|
|
compressionMethod?: CompressionMethod
|
|
cacheSize?: number
|
|
}
|