UNPKG

@hirebus/academy

Version:

React component library for academy and learning platforms

20 lines (18 loc) 650 B
import { Course, CourseCategory, CourseFileUpload } from '../../types/course'; /** * Maps course upload data (from the wizard form) to a domain Course entity * * @param params - Object containing course data needed for mapping * @returns Course - A properly formatted Course domain entity */ export declare function mapCourseUploadToDomain({ basicInfo, content, creatorId, editingCourse, }: { basicInfo: { title: string; description: string; category: CourseCategory; tags: string[]; } | null; content: CourseFileUpload[] | null; creatorId: number; editingCourse?: Course | null; }): Course;