I am looking to convert the JavaScript code shown below into TypeScript, but I don't want to use 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)
)
);
Alternatively, if anyone knows where I can get some help with this specific situation, please let me know.