An error message popped up saying:
TS2339: Property 'set' does not exist on type Set<>
Below is the code snippet that triggered the error:
const id = 123;
const a: Map<string, Set<File>> = new Map();
if (a.has(id)) {
a.set(id, new Set());
a.get(id).set(value);
}