@codelytv/primitives-type
Version:
Type entity primitives from value objects
11 lines (10 loc) • 385 B
TypeScript
import { Primitives } from "../src";
import { VideoId } from "./VideoId";
import { VideoName } from "./VideoName";
export declare class Video {
readonly id: VideoId;
readonly name: VideoName | undefined;
readonly duration: number | undefined;
constructor(id: VideoId, name: VideoName | undefined, duration: number | undefined);
toPrimitives(): Primitives<Video>;
}