I see that the jsonld functions now take JsonLd as input. It is defined in a way which causes compilation to complain when any arbitrary JS object is passed.
jsonld.js works just fine this way and I think the JsonLd typing could be updated accordingly