I want to convert the following js code in ts, without using loadish.js.
let claimNames = _.filter<string>(_.keys(decodedToken), o =>
o.startsWith(ns)
);
let claims = <any>(
_.mapKeys(_.pick(decodedToken, claimNames), (value, key) =>
key.replace(ns, "").substring(1)
)
);
or is there a place where I can find some help regarding this situation.