Add optional DEBUG parameter to world function

This commit is contained in:
christopher-buss 2026-01-29 22:41:00 +00:00
parent be74de6b3e
commit eb092cd8c0
No known key found for this signature in database
GPG key ID: 76FC39C6626045EC

2
src/jecs.d.ts vendored
View file

@ -280,7 +280,7 @@ export class World {
removed<T>(component: Entity<T>, listener: (e: Entity, id: Id<T>, deleted?: true) => void): () => void;
}
export function world(): World;
export function world(DEBUG?: boolean): World;
export function component<T>(): Entity<T>;