title: For a Pinescript (version 5) library function, how do I declare the variable type of a "timeframe / resolution" function parameter?
body: <p>For a Pinescript (version 5) library function, how do I declare the variable type of a &quot;timeframe / resolution&quot; parameter? In the following sample, how must &quot;resoVar&quot; be declared in the function?</p>
  <pre><code>//@version=5
  
  library(&quot;My Library&quot;)
  
  export testFunction(&lt;variable type&gt; resoVar, string someString) =&gt;
       &lt;function code&gt;
  </code></pre>
  <p>The value will be generated from user input using:</p>
  <p><code>resoInput = input(title=&quot;resoVar&quot;, type=input.resolution, defval='60')</code></p>
  <p>and then will be processed with the aforesaid library function:</p>
  <p><code>testFunction(resoInput, &quot;test&quot;)</code></p>
  <p>I can't seem to locate in the documentation for the newly released version 5 of Pinescript.</p>