title: Is it possible to override a type identifier from `lib.dom`?
body: <p>I'm using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API" rel="nofollow noreferrer">File System Access API</a> in my application so I have added <a href="https://www.npmjs.com/package/@types/wicg-file-system-access" rel="nofollow noreferrer"><code>@types/wicg-file-system-access</code></a> to make the api work with TypeScript. But in TypeScript 4.6 this api has been partially added to <code>lib.dom</code>, causing some of the types to clash. I have <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/pull/58389" rel="nofollow noreferrer">started a PR</a> to fix these issues, but there's one problem I'm not really sure how to fix. Specifically that both <code>lib.dom</code> and <code>@types/wicg-file-system-access</code> contain the following type:</p>
  <pre class="lang-js prettyprint-override"><code>type FileSystemHandleKind = 'file' | 'directory';
  </code></pre>
  <p>And as a result I get the following error:</p>
  <pre class="lang-none prettyprint-override"><code>TS2300: Duplicate identifier 'FileSystemHandleKind'.
  </code></pre>
  <p>Normally I would just use a different name and move on, but in this case that would introduce a breaking change. Is there some sort of way to override or merge or perhaps 'undeclare' the type in <code>lib.dom</code>? Or am I forced to introduce a breaking change?</p>