Skip to content

Commit

Permalink
Merge pull request #42 from nrkn/main
Browse files Browse the repository at this point in the history
Fixes #41
  • Loading branch information
mreinstein authored Feb 29, 2024
2 parents 6297622 + 588d136 commit 82eb047
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const now = (typeof performance === 'undefined') ? (() => Date.now()) : (() => p
* @typedef { 'added' | 'removed' } ListenerType
*/

/**
* @typedef { Entity[] } ListenerResult
*/

/**
* @typedef { any } Component
*/
Expand Down
4 changes: 4 additions & 0 deletions types/ecs.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/**
* @typedef { 'added' | 'removed' } ListenerType
*/
/**
* @typedef { Entity[] } ListenerResult
*/
/**
* @typedef { any } Component
*/
Expand Down Expand Up @@ -211,6 +214,7 @@ declare namespace _default {
}
export default _default;
export type ListenerType = 'added' | 'removed';
export type ListenerResult = Entity[];
export type Component = any;
export type Entity = {
[key: string]: any;
Expand Down
2 changes: 1 addition & 1 deletion types/ecs.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82eb047

Please sign in to comment.