Skip to main content

Typescript

Cal-Heatmap ships with official type declarations for TypeScript in NPM package out of the box.

danger

Typescript declaration files are still work in progress, and may change in the future

Install via NPM

npm install cal-heatmap

Import and use in your Typescript file

import CalHeatmap from 'cal-heatmap';
const cal: CalHeatmap = new CalHeatmap();