Skip to content

Commit

Permalink
Merge pull request #290 from NDLA-H5P/feature/image-copyright-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
boyum authored Jan 25, 2022
2 parents 00e1085 + 30a825f commit 3915fa8
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 3915fa8

Please sign in to comment.