Here's the solution for anyone else that overlooked Ashley's article on using TypeScript in Construct:
When using TypeScript, Construct generates a special class representing an instance for every object type and family in the project. This includes type definitions for things like the instance variables, behaviors and effects specific to that object. These classes are all in the InstanceType
namespace with the name of the object.
So, the solution was to extend DragItem
from InstanceType.DragItem
.
export default class DragItem extends InstanceType.DragItem {
// ...
}