Javascript – Type created with keyof cannot be used to index type it was created from
I'm trying to write a utility function in my TypeScript project to sort/filter objects in a fairly predictable data model (I'm using Astro for this site). The objects keep all the data useful for sorting/filtering in the data property. I…