how to use typescript for esm code example Example: using es6 set in typescript const [elements, setElements] = useState<Set<string>>(new Set())