UNPKG

@dolittle/sdk.artifacts

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

32 lines 1.19 kB
import { ConceptAs } from '@dolittle/concepts'; /** * Defines the types that can be converted into a {@link Generation}. */ export declare type GenerationLike = Generation | number; /** * Represents the generation of an Artifact. */ export declare class Generation extends ConceptAs<number, '@dolittle/sdk.artifacts.Generation'> { /** * Initialises a new instance of the {@link Generation} class. * @param {number} generation - The generation. */ constructor(generation: number); /**. * Represents the first {@link Generation} */ static first: Generation; /** * Creates a {@link Generation} from a {@link GenerationLike}. * @param {GenerationLike} generation - The generation. * @returns {Generation} The created generation concept. */ static from(generation: GenerationLike): Generation; } /** * Checks whether or not an object is an instance of {@link Generation}. * @param {any} object - The object to check. * @returns {boolean} True if the object is an {@link Generation}, false if not. */ export declare const isGeneration: (object: any) => object is Generation; //# sourceMappingURL=Generation.d.ts.map