Tu dois faire un truc du style .


threads: Subject<{[key: string]: Thread }> = new Subject();



const checkThreadDico = (threadDictionary,str) => {
for (let i in threadDictionary) {
...