Trying to import class in the file and it is throwing an error it might be quick fix i would appreciate the help.
class.ts
export class Cache {
private cache: CCache;
public async getCache(tokenId: string): Promise<any> {
// add logic here
return memberInfo;
}
}
otherFile.ts
import { Cache } from "./class.ts";
public before(args: any) {
let specialtyCache: any;
specialtyCache = new Cache().getCache(args.token);
}
Error
Constructor of class 'Cache' is private and only accessible within the class declaration.ts