Fix file paths

This commit is contained in:
Ukendio 2024-08-17 02:38:00 +02:00
parent 57893b9244
commit f2d6d76686
2 changed files with 47 additions and 43 deletions

View file

@ -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
View file

@ -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;