Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 981591ff authored by ROSPARS Benoit's avatar ROSPARS Benoit
Browse files

Simplify content type value

parent ca3fb545
No related branches found
No related tags found
No related merge requests found
{
"name": "@epoc/epoc-specs",
"version": "2.0.0-beta-2",
"version": "2.0.0-beta-3",
"description": "ePoc (Electronic Pocket Open Course) types specifications",
"main": "dist/index.ts",
"types": "dist/index.d.ts",
"scripts": {
"publish": "tsc && npm publish --access=public"
"p": "tsc && npm publish --access=public"
},
"repository": {
"type": "git",
......
import {html, uid} from './types';
export interface Content {
type: 'html' | 'assessment' | 'video' | 'simple-question' | 'choice';
type: string;
title: string;
subtitle?: string;
conditional?: boolean;
......@@ -9,6 +9,7 @@ export interface Content {
}
export interface Video extends Content {
type: 'video'
source: string;
summary: html;
subtitles: {label: string, lang: string, src: string}[];
......@@ -17,16 +18,19 @@ export interface Video extends Content {
}
export interface Html extends Content {
type: 'html'
html: html;
}
export interface Assessment extends Content {
type: 'assessment'
summary?: string;
questions?: uid[];
time?: number;
}
export interface SimpleQuestion extends Content {
type: 'simple-question'
question: uid;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment