I am facing an issue with my main.ts file where I have a map structure with keys defined by the interface dr
and values stored as strings. However, when attempting to retrieve a value from the map using the get
method, it returns undefined. Below is the snippet of my code:
interface dr {
a: string;
b: string;
}
let myMap = new Map<dr,string>();
myMap.set({ a: 'foo', b: 'bar' }, `this is my map`);
export default (a:string,b:string): string => {
return myMap.get({ a: a, b: b })!;
};