1
TypeCrip 클래스 구문을 사용하여 NeDB를 사용하여 데이터 저장소를 얻으려면 어떻게해야합니까?NeDB + Typescript
namespace NamespaceName {
"use strict";
export class Persistence {
private attrs: Type;
public static $inject: Array<string> = [];
constructor(
) {
this.attr1 = "";
}
// Public Methods
public method1() {
...
}
// Private Methods
private method1() {
...
}
}
}
어디에서 데이터 저장소를 만들고 인스턴스화해야합니까?