<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/birkskyum/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/birkskyum">@birkskyum</a>: About duplicate content. I think the Accounts module nested in meteor/accounts-base is necessary, in order to match the javascript, but can the global Accounts module be removed?</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fullflavedave/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fullflavedave">@fullflavedave</a>: It would be great to remove all the duplication. This was created when Meteor added support for ES2015 modules (the global modules were the original). Does Meteor 1.4 still support global modules (e.g. for super quick prototyping)? If so, then the global module definitions probably need to be there for backwards compatibility. However, it would be great if the global Accounts module and the one nested in meteor/accounts-base referenced one set of definitions (and all other modules too). My TypeScript skills are a little out-dated, and I haven't fooled around to see if it's possible -- want to give it a try <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/birkskyum/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/birkskyum">@birkskyum</a>? Let's add a separate issue and continue discussion there.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/birkskyum/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/birkskyum">@birkskyum</a>: Sure, I'll have a look at it.</p>
<p dir="auto">The <code class="notranslate">convert</code> function that should be available on each <code class="notranslate">lodash/fp</code> exported member is not typed correctly for <code class="notranslate">mapValues</code> (the only one I checked but probably others too)</p>
<p dir="auto">I should be able to do the following:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { mapValues } from 'lodash/fp'

const mapValuesUncapped = mapValues.convert({ cap: false })
// I get the error =&gt; `[ts] Property 'convert' does not exist on type 'LodashMapValues'.`"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">mapValues</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'lodash/fp'</span>

<span class="pl-k">const</span> <span class="pl-s1">mapValuesUncapped</span> <span class="pl-c1">=</span> <span class="pl-s1">mapValues</span><span class="pl-kos">.</span><span class="pl-en">convert</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">cap</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-c">// I get the error =&gt; `[ts] Property 'convert' does not exist on type 'LodashMapValues'.`</span></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>.  (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bczengel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bczengel">@bczengel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chrootsu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chrootsu">@chrootsu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stepancar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stepancar">@stepancar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aj-r/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aj-r">@aj-r</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Ailrun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ailrun">@Ailrun</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/e-cloud/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/e-cloud">@e-cloud</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thorn0/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thorn0">@thorn0</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jtmthf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jtmthf">@jtmthf</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DomiR/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DomiR">@DomiR</a></li>
</ul>
</li>
</ul>