Why am I getting “Type ‘String’ cannot be used as an index type” error in TypeScript? February 1, 2023 by Tarik Use lowercase string for the type of MyObject._id