/p5.ts

Primary LanguageJavaScriptGNU Lesser General Public License v2.1LGPL-2.1

p5.ts

Generates TypeScript definitions for p5.js.
The releases branch contains generated typings for published releases.

index.d.ts is for p5 used in instance mode and global.d.ts is for p5 in global mode. global.d.ts references index.d.ts, so you must include both if global mode is used.

To generate typings yourself, try out:

npm run download-p5
npm run generate-data
npm run generate