Skip to content

Commit

Permalink
add copyright fields on H5P Image type
Browse files Browse the repository at this point in the history
  • Loading branch information
boyum committed Jan 25, 2022
1 parent 00e1085 commit 30a825f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/h5p/Copyright.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type Copyright = {
author: string;
license: string;
source: string;
title: string;
version: string;
year: string;
};
6 changes: 6 additions & 0 deletions src/types/h5p/Image.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { Copyright } from "./Copyright";

export type Image = {
path: string;
alt?: string | undefined;
copyright?: Copyright;
height?: number;
width?: number;
mime?: string;
};

0 comments on commit 30a825f

Please sign in to comment.