title: Deno and oak error: TS2315 [ERROR]: Type 'Conn' is not generic - with Deno using oak as server on macOs with basic example code
body: <p>I am trying out <strong>Deno with oak</strong> and I am running into the same error everytime - even when I try the default example. My working environment is macOs Big Sur. Does anybody know how to fix this issue?</p>
  <pre><code>$ deno run --allow-net server.ts 
  Check file:///.../server.ts
  error: TS2315 [ERROR]: Type 'Conn' is not generic.
  export function isConn(value: unknown): value is Deno.Conn&lt;Deno.NetAddr&gt; {
                                                   ~~~~~~~~~~~~~~~~~~~~~~~
      at https://deno.land/x/oak@v7.2.0/util.ts:66:50
  
  TS2315 [ERROR]: Type 'Conn' is not generic.
    #conn?: Deno.Conn&lt;Deno.NetAddr&gt;;
            ~~~~~~~~~~~~~~~~~~~~~~~
      at https://deno.land/x/oak@v7.2.0/http_server_native.ts:41:11
  
  TS2315 [ERROR]: Type 'Conn' is not generic.
    constructor(requestEvent: RequestEvent, conn?: Deno.Conn&lt;Deno.NetAddr&gt;) {
                                                   ~~~~~~~~~~~~~~~~~~~~~~~
      at https://deno.land/x/oak@v7.2.0/http_server_native.ts:49:50
  
  TS2315 [ERROR]: Type 'Conn' is not generic.
          async function serve(conn: Deno.Conn&lt;Deno.NetAddr&gt;) {
                                     ~~~~~~~~~~~~~~~~~~~~~~~
      at https://deno.land/x/oak@v7.2.0/http_server_native.ts:149:36
  
  TS2315 [ERROR]: Type 'Conn' is not generic.
      conn?: Deno.Conn&lt;Deno.NetAddr&gt;,
             ~~~~~~~~~~~~~~~~~~~~~~~
      at https://deno.land/x/oak@v7.2.0/application.ts:50:12
  
  TS2315 [ERROR]: Type 'Conn' is not generic.
      secureOrConn: Deno.Conn&lt;Deno.NetAddr&gt; | boolean | undefined,
                    ~~~~~~~~~~~~~~~~~~~~~~~
      at https://deno.land/x/oak@v7.2.0/application.ts:374:19
  
  Found 6 errors.
  </code></pre>
  <p>The sample code comes from here (<a href="https://github.com/oakserver/oak" rel="nofollow noreferrer">https://github.com/oakserver/oak</a>) and looks like this:</p>
  <pre><code>import { Application } from &quot;https://deno.land/x/oak/mod.ts&quot;;
  
  const app = new Application();
  
  app.use((ctx) =&gt; {
      ctx.response.body = &quot;Hello World!&quot;;
  });
  
  await app.listen({ port: 8000 });
  </code></pre>
  <p>Thank you!</p>