UNPKG

eas-cli

Version:
98 lines (97 loc) 2.25 kB
/** * DO NOT EDIT unless the same change is made in `@expo/fingerprint` */ /// <reference types="node" /> export interface HashSourceFile { type: 'file'; filePath: string; /** * Reasons of this source coming from */ reasons: string[]; } export interface HashSourceDir { type: 'dir'; filePath: string; /** * Reasons of this source coming from */ reasons: string[]; } export interface HashSourceContents { type: 'contents'; id: string; contents: string | Buffer; /** * Reasons of this source coming from */ reasons: string[]; } export type HashSource = HashSourceFile | HashSourceDir | HashSourceContents; export interface Fingerprint { /** * Sources and their hash values to generate a fingerprint */ sources: FingerprintSource[]; /** * The final hash value of the whole fingerprint */ hash: string; } export interface DebugInfoFile { path: string; hash: string; } export interface DebugInfoDir { path: string; hash: string; children: (DebugInfoFile | DebugInfoDir | undefined)[]; } export interface DebugInfoContents { hash: string; } export type DebugInfo = DebugInfoFile | DebugInfoDir | DebugInfoContents; export type FingerprintSource = HashSource & { /** * Hash value of the `source`. * If the source is excluding by `Options.dirExcludes`, the value will be null. */ hash: string | null; /** * Debug info from the hashing process. Differs based on source type. Designed to be consumed by humans * as opposed to programmatically. */ debugInfo?: DebugInfo; }; export type FingerprintDiffItem = { /** * The operation type of the diff item. */ op: 'added'; /** * The added source. */ addedSource: FingerprintSource; } | { /** * The operation type of the diff item. */ op: 'removed'; /** * The removed source. */ removedSource: FingerprintSource; } | { /** * The operation type of the diff item. */ op: 'changed'; /** * The source before. */ beforeSource: FingerprintSource; /** * The source after. */ afterSource: FingerprintSource; };