website/global.d.ts
Soph :3 a7aaff537f
All checks were successful
/ test (push) Successful in 14s
improve file structure + add TSX/JSX support
2024-07-23 10:12:54 +03:00

15 lines
298 B
TypeScript

import P5 from "p5"
import * as p5Sound from 'p5/lib/addons/p5.sound'
import * as p5Global from 'p5/global'
export = P5;
export as namespace p5;
declare global {
interface Window {
p5: typeof P5,
setup: () => void,
preload: () => void,
draw: () => void
}
}