Repalace usages of old lambda syntax with typescript lambda syntax

@Fatme @teobugslayer