h5p-types
v5.6.0
Published
This package provides TypeScript types for H5P. This project might one day become `@types/h5p`.
Downloads
405
Readme
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.
Usage
Install the package:
npm install h5p-types --save-devh5p-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 [email protected].
Docs
Go to the documentation site to see each type, interface and class in detail.
Featured types and interfaces:
H5PObject- The globalH5Pobject.H5PEditor- The globalH5PEditorobject.IH5PContentType- The interface for content types.IH5PWidget- The interface for widgets.InferParamsFromSemantics- A utility type that infers the params type from a semantics object.
