NET-Web-API-w-Angular/my-app/node_modules/@tufjs/models/dist/targets.d.ts

21 lines
714 B
TypeScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
import { MetadataKind, Signed, SignedOptions } from './base';
import { Delegations } from './delegations';
import { TargetFile } from './file';
import { JSONObject } from './utils';
type TargetFileMap = Record<string, TargetFile>;
interface TargetsOptions extends SignedOptions {
targets?: TargetFileMap;
delegations?: Delegations;
}
export declare class Targets extends Signed {
readonly type = MetadataKind.Targets;
readonly targets: TargetFileMap;
readonly delegations?: Delegations;
constructor(options: TargetsOptions);
addTarget(target: TargetFile): void;
equals(other: Targets): boolean;
toJSON(): JSONObject;
static fromJSON(data: JSONObject): Targets;
}
export {};