UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

19 lines 694 B
import type { JSONObject } from 'tiny-types'; import { TinyType } from 'tiny-types'; export interface SerialisedArtifact extends JSONObject { type: string; base64EncodedValue: string; } export type ArtifactType = new (base64EncodedValue: string) => Artifact; /** * @extends {tiny-types~TinyType} */ export declare abstract class Artifact extends TinyType { readonly base64EncodedValue: string; static fromJSON(o: SerialisedArtifact): Artifact; static ofType(name: string): ArtifactType | undefined; constructor(base64EncodedValue: string); abstract map<T>(fn: (decodedValue: any) => T): T; toJSON(): SerialisedArtifact; } //# sourceMappingURL=Artifact.d.ts.map