Declare UInt8Array variable in TypeScript
<p>How to declare function parameter of type UInt8Array in TypeScript?</p>

<pre><code>import * as fs from "fs";
fs.readFile(fileName, (err: string, data: UInt8Array) =&gt; {
                if (err) {
                    return console.error(err);
                }
                console.log("file text: " + data.toString());
            });
</code></pre>

<p>I'm having an error: </p>

<blockquote>
  <p>error TS2304: Cannot find name 'UInt8Array'</p>
</blockquote>

<p>Thanks</p>