diff --git a/lib/init.lua b/lib/init.lua index a3642de..3374970 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -194,7 +194,7 @@ local function onNotifyAdd(world, archetype, otherArchetype, row: number, added: end -type World = typeof(World.new()) +export type World = typeof(World.new()) local function ensureArchetype(world: World, types, prev) if #types < 1 then @@ -581,4 +581,4 @@ return table.freeze({ ON_ADD = ON_ADD, ON_REMOVE = ON_REMOVE, ON_SET = ON_SET -}) \ No newline at end of file +})