Change generic to unknown

This commit is contained in:
Ukendio 2025-03-27 04:17:23 +01:00
parent bf33748ecf
commit 4d6c2ccbb8

View file

@ -2373,7 +2373,7 @@ end
World.new = world_new World.new = world_new
export type Entity<T = nil> = { __T: T } export type Entity<T = unknown> = { __T: T }
export type Id<T = unknown> = { __T: T } export type Id<T = unknown> = { __T: T }
export type Pair<P, O> = Id<P> export type Pair<P, O> = Id<P>
type ecs_id_t<T=unknown> = Id<T> | Pair<T, "Tag"> | Pair<"Tag", T> type ecs_id_t<T=unknown> = Id<T> | Pair<T, "Tag"> | Pair<"Tag", T>