how to properly type preact/compat?

GitHub
There is a section on the Getting Started page called "Aliasing React to Preact". There is no example for how to do this in a Deno project. So 1) I'd like to ask how to do so in a Den...
"imports": {
"react": "npm:preact@^10.26.2/compat",
"react-dom": "npm:preact@^10.26.2/compat",
"@types/react": "npm:preact@^10.26.2/compat",
}