We’d love to figure out a way to define those types automatically. For now, you’ll have to declare the ones you’re using manually:
import { Controller } from "stimulus"
export default class extends Controller {
nameTarget: Element
nameTargets: Element[]
hasNameTarget: boolean
static targets = [ "name" ]
// …
}