Skip to content

Function: castObject

Ammo.castObject

castObject<T, C>(object, type): InstanceType<C>

Type parameters

NameType
TT
Cextends (...args: any[]) => T

Parameters

NameType
objectany
typeC

Returns

InstanceType<C>

Defined in

packages/ammo/ammo.d.ts:14