Skip to content

Commit 19f245b

Browse files
authored
Tighten up typing for RigidBodyComponent#type (#8292)
1 parent 8d8bce7 commit 19f245b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/framework/components/rigid-body/component.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ class RigidBodyComponent extends Component {
170170
/** @private */
171171
_simulationEnabled = false;
172172

173-
/** @private */
173+
/**
174+
* @type {BODYTYPE_DYNAMIC|BODYTYPE_KINEMATIC|BODYTYPE_STATIC}
175+
* @private
176+
*/
174177
_type = BODYTYPE_STATIC;
175178

176179
/** @ignore */
@@ -546,7 +549,7 @@ class RigidBodyComponent extends Component {
546549
*
547550
* Defaults to {@link BODYTYPE_STATIC}.
548551
*
549-
* @type {string}
552+
* @type {BODYTYPE_DYNAMIC|BODYTYPE_KINEMATIC|BODYTYPE_STATIC}
550553
*/
551554
set type(type) {
552555
if (this._type !== type) {
@@ -579,7 +582,7 @@ class RigidBodyComponent extends Component {
579582
/**
580583
* Gets the rigid body type determines how the body is simulated.
581584
*
582-
* @type {string}
585+
* @type {BODYTYPE_DYNAMIC|BODYTYPE_KINEMATIC|BODYTYPE_STATIC}
583586
*/
584587
get type() {
585588
return this._type;

0 commit comments

Comments
 (0)