Skip to content

Commit

Permalink
Fix file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Aug 17, 2024
1 parent 57893b9 commit f2d6d76
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 43 deletions.
86 changes: 44 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
{
"name": "@rbxts/jecs",
"version": "0.2.9",
"description": "Stupidly fast Entity Component System",
"main": "src",
"repository": {
"type": "git",
"url": "https://github.com/ukendio/jecs.git"
},
"keywords": [],
"author": "Ukendio",
"contributors": [
"Ukendio",
"EncodedVenom"
],
"homepage": "https://github.com/ukendio/jecs",
"license": "MIT",
"types": "src/index.d.ts",
"files": [
"src/"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@rbxts/compiler-types": "^2.3.0-types.1",
"@rbxts/types": "^1.0.781",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-roblox-ts": "^0.0.32",
"prettier": "^2.5.1",
"roblox-ts": "^2.3.0",
"typescript": "^5.4.2",
"vitepress": "^1.3.0"
},
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
}
"name": "@rbxts/jecs",
"version": "0.2.9",
"description": "Stupidly fast Entity Component System",
"main": "src/init",
"repository": {
"type": "git",
"url": "https://github.com/ukendio/jecs.git"
},
"keywords": [],
"author": "Ukendio",
"contributors": [
"Ukendio",
"EncodedVenom"
],
"homepage": "https://github.com/ukendio/jecs",
"license": "MIT",
"types": "src/index.d.ts",
"files": [
"src",
"LICENSE.md",
"README.md"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@rbxts/compiler-types": "^2.3.0-types.1",
"@rbxts/types": "^1.0.781",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-roblox-ts": "^0.0.32",
"prettier": "^2.5.1",
"roblox-ts": "^2.3.0",
"typescript": "^5.4.2",
"vitepress": "^1.3.0"
},
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
}
}
4 changes: 3 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]>;
Expand Down Expand Up @@ -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;

0 comments on commit f2d6d76

Please sign in to comment.