NeDB + Typescript
<p>How can I get a datastore with NeDB using typescrip classes syntax?</p>

<pre><code>namespace NamespaceName {

"use strict";

export class Persistence {

    private attrs: Type;

    public static $inject: Array&lt;string&gt; = [];

    constructor(
    ) {
        this.attr1 = "";
    }

    // Public Methods
    public method1() {
        ...
    }

    // Private Methods
    private method1() {
        ...
    }
  }
}
</code></pre>

<p>Where should I create and instantiate my datastore?</p>