mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Fix file paths
This commit is contained in:
parent
57893b9244
commit
f2d6d76686
2 changed files with 47 additions and 43 deletions
|
@ -2,7 +2,7 @@
|
|||
"name": "@rbxts/jecs",
|
||||
"version": "0.2.9",
|
||||
"description": "Stupidly fast Entity Component System",
|
||||
"main": "src",
|
||||
"main": "src/init",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ukendio/jecs.git"
|
||||
|
@ -17,7 +17,9 @@
|
|||
"license": "MIT",
|
||||
"types": "src/index.d.ts",
|
||||
"files": [
|
||||
"src/"
|
||||
"src",
|
||||
"LICENSE.md",
|
||||
"README.md"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
4
src/index.d.ts
vendored
4
src/index.d.ts
vendored
|
@ -33,7 +33,7 @@ type Query<T extends unknown[]> = {
|
|||
} & IterableFunction<LuaTuple<[Entity, ...T]>>;
|
||||
|
||||
// Utility Types
|
||||
export type Entity<T = unknown> = number & { __DO_NOT_USE_OR_YOU_WILL_BE_FIRED: T };
|
||||
export type Entity<T = unknown> = number & { __T: T };
|
||||
export type EntityType<T> = T extends Entity<infer A> ? A : never;
|
||||
export type InferComponents<A extends Entity[]> = {
|
||||
[K in keyof A]: EntityType<A[K]>;
|
||||
|
@ -162,5 +162,7 @@ export const Component: Entity;
|
|||
export const OnAdd: Entity;
|
||||
export const OnRemove: Entity;
|
||||
export const OnSet: Entity;
|
||||
export const OnDeleteTarget: Entity;
|
||||
export const Delete: Entity;
|
||||
export const Wildcard: Entity;
|
||||
export const Rest: Entity;
|
||||
|
|
Loading…
Reference in a new issue