Update outwards facing types
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run

This commit is contained in:
Ukendio 2025-05-07 15:52:02 +02:00
parent 6a8d991185
commit 48a43d4ff8

View file

@ -2403,9 +2403,9 @@ export type ComponentRecord = {
flags: number, flags: number,
size: number, size: number,
hooks: { hooks: {
on_add: ((entity: Entity) -> ())?, on_add: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?,
on_set: ((entity: Entity, data: any) -> ())?, on_change: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?,
on_remove: ((entity: Entity) -> ())?, on_remove: ((entity: Entity, id: Entity) -> ())?,
}, },
} }
export type ComponentIndex = Map<Id, ComponentRecord> export type ComponentIndex = Map<Id, ComponentRecord>