refactor: Introduce explicit-member-accessibility lint rule (#12325)

This commit is contained in:
Iván Ovejero
2024-12-20 11:44:01 +01:00
committed by GitHub
parent e5587ff11f
commit 95db031aa4
27 changed files with 59 additions and 56 deletions

View File

@@ -32,14 +32,14 @@ class MemoryChatBufferSingleton {
this.memoryBuffer = new Map();
}
public static getInstance(): MemoryChatBufferSingleton {
static getInstance(): MemoryChatBufferSingleton {
if (!MemoryChatBufferSingleton.instance) {
MemoryChatBufferSingleton.instance = new MemoryChatBufferSingleton();
}
return MemoryChatBufferSingleton.instance;
}
public async getMemory(
async getMemory(
sessionKey: string,
memoryParams: BufferWindowMemoryInput,
): Promise<BufferWindowMemory> {