This is a collection of TypeScript type definitions for H5P. Each package contains type definitions for a specific H5P content type or library. This project aims to provide examples on how to use the type definitions in a TypeScript project. Check out the examples folder for more information.
Package | Description |
---|---|
h5p-generate-configs |
A tool for creating common H5P config files out of a TypeScript definition |
h5p-json-schemas |
Schemas for JSON files related to H5P (link to schemas) |
h5p-qol-vscode-extension |
Quality of life improvements for H5P development in VSCode (link to marketplace) |
h5p-types |
Type definitions for H5P Core |
h5p-types-joubel-ui |
Type definitions for H5P JoubelUI |
h5p-utils |
Abstractions and utilities for creating H5P Widgets and Content Types |
use-h5p |
React Hooks to be used with H5P Widgets and Content Types |
Are there missing type definitions, or are the types wrong? Feel free to open an issue or a pull request.
Follow these steps to add a new package that will be released to npm:
packages
folderproject
array in the check-npm-packages workflow"*"
Follow these steps to add a new example:
examples
folderproject
array in the examples workflowIf updating turbo
on an arm64 machine, you need to install both the arm64 and x64 versions of turbo
for it to work in CI as well.
npm install -D --arch=x64 --platform=linux turbo
npm install -D --arch=arm64 --platform=darwin turbo