mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Remove generic
This commit is contained in:
parent
906e5e5f58
commit
137118f178
1 changed files with 2 additions and 2 deletions
4
jecs.d.ts
vendored
4
jecs.d.ts
vendored
|
@ -289,10 +289,10 @@ export function pair_first<P, O>(world: World, p: Pair<P, O>): Entity<P>;
|
|||
*/
|
||||
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
||||
|
||||
type StatefulHook<Cb = <T>(e: Entity<T>, id: Id<T>, data: T) => void> = Entity<Cb> & {
|
||||
type StatefulHook = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
|
||||
readonly __nominal_StatefulHook: unique symbol,
|
||||
}
|
||||
type StatelessHook<Cb = <T>(e: Entity<T>, id: Id<T>) => void> = Entity<Cb> & {
|
||||
type StatelessHook = Entity<<T>(e: Entity<T>, id: Id<T>) => void> & {
|
||||
readonly __nominal_StatelessHook: unique symbol,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue