diff --git a/src/index.ts b/src/index.ts index 750325d..73975eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ interface MemoOptions { file: string } -export async function getMemo (config: Partial): Promise { +export async function getMemo (config: Partial): Promise { const file = getFile(config) // Try to load latest memo @@ -31,10 +31,10 @@ export async function getMemo (config: Partial): Promise { // Ignore } - return _memo + return _memo as T } -export async function setMemo (memo: object, config: Partial): Promise { +export async function setMemo (memo: T, config: Partial): Promise { const file = getFile(config) // Set local memo