Skip to content

Commit 1ed2ce6

Browse files
committed
Update types for RigidBodyComponent#type
1 parent 9fb152d commit 1ed2ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/rigidbody-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class RigidBodyComponentElement extends ComponentElement {
175175
set type(value: string) {
176176
this._type = value;
177177
if (this.component) {
178-
this.component.type = value;
178+
this.component.type = value as 'static' | 'dynamic' | 'kinematic';
179179
}
180180
}
181181

0 commit comments

Comments
 (0)