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
86
package.json
86
package.json
|
@ -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
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