processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.11k stars 3.22k forks source link

2.0: Add Typescript type exporting #6972

Open davepagurek opened 2 months ago

davepagurek commented 2 months ago

This is based off of https://github.com/processing/p5.js/pull/6777, so you can see just the new Typescript bits here: https://github.com/davepagurek/p5.js/compare/initial-conversion-script..tsc

So it adds an npm run types command which generates, currently, types/p5.rollup.esm.d.ts. The reason for the name is that:

davepagurek commented 2 months ago

TODO: make a thing to generate global mode types