doc: comments for codebase and updated documentation

This commit is contained in:
Ilia Mashkov committed 2026-01-18 15:55:07 +03:00
1 parent 8356e99382
commit 9cbf4fdc48
19 files changed
+111 -44

No files matched your search

@@ -75,6 +75,11 @@ export class EntityStore<T extends Entity> {
}
}
/**
* Creates a new EntityStore instance with the given initial entities.
* @param initialEntities The initial entities to populate the store with.
* @returns - A new EntityStore instance.
*/
export function createEntityStore<T extends Entity>(initialEntities: T[] = []) {
return new EntityStore<T>(initialEntities);
}