h5p-types

H5P Types

This package provides TypeScript types for H5P. This project might one day become @types/h5p.

Most of these types are copies of models found in the H5P Core, and are no more than declarations. They describe the structure of models that are found in the H5P Core and is especially helpful for APIs like the H5P and H5PEditor global objects.

Install the package:

npm install h5p-types --save-dev

h5p-types depends on TypeScript and requires TypeScript version 5.0.4 or higher to be installed. If you need support for TypeScript 4.7, install h5p-types@2.0.1.

Go to the documentation site to see each type, interface and class in detail.

Featured types and interfaces: