You can document the object's members in Closure annotation: `{{specials:Array.<number>, lastSegmentSpecialsIndex:number}}`