mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
fix: allow components for world.add in typescript
This commit is contained in:
parent
a31db7b17b
commit
a39752a833
3 changed files with 4 additions and 4 deletions
2
jecs.d.ts
vendored
2
jecs.d.ts
vendored
|
@ -148,7 +148,7 @@ export class World {
|
|||
* @param entity The target entity.
|
||||
* @param component The component (or tag) to add.
|
||||
*/
|
||||
add(entity: Entity, component: Id<undefined>): void;
|
||||
add(entity: Entity, component: Id): void;
|
||||
|
||||
/**
|
||||
* Assigns a value to a component on the given entity.
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@rbxts/jecs",
|
||||
"version": "0.6.0-rc.1",
|
||||
"version": "0.6.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@rbxts/jecs",
|
||||
"version": "0.6.0-rc.1",
|
||||
"version": "0.6.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@rbxts/compiler-types": "^2.3.0-types.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@rbxts/jecs",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"description": "Stupidly fast Entity Component System",
|
||||
"main": "jecs.luau",
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in a new issue