[NTG-context] New typescript mechanism for weights/opticals?