Open
Description
Defined in BaseTarget
.
cursorless/src/processTargets/targets/BaseTarget.ts
Lines 116 to 123 in 8639b56
It uses any
, so programmer can forget clone parameters without Typescript detecting it. Possible solutions:
- Enable
explicit-function-return-type
to force programmer to strongly type their clone parameters - Move implementation to derived types, maybe with a utility function that they can use?
- Figure out a way to make it strongly typed in the base class?