Skip to content

Commit 19510f5

Browse files
committed
chore(cannon): adjust type for physics cannon worker
1 parent 0d0c766 commit 19510f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/cannon/src/lib/physics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export interface NgtcCannonWorkerEvents {
4141
rayhit: WorkerRayhitEvent;
4242
}
4343

44-
export interface NgtcCannonWorker extends CannonWorkerAPI {
44+
export type NgtcCannonWorker = CannonWorkerAPI & {
4545
on: <K extends keyof NgtcCannonWorkerEvents>(event: K, cb: (data: NgtcCannonWorkerEvents[K]['data']) => void) => void;
4646
removeAllListeners: () => void;
47-
}
47+
};
4848

4949
const v = new Vector3();
5050
const s = new Vector3(1, 1, 1);

0 commit comments

Comments
 (0)