From 53024e25980d4dba852781f253b02b10ad9179dc Mon Sep 17 00:00:00 2001 From: Sam Curry Date: Tue, 14 Feb 2023 16:11:41 +0800 Subject: [PATCH] fix PersistStorage.getItem async typing to match sync version --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 45d1871..87a2e9a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ import { AtomEffect } from 'recoil' export interface PersistStorage { setItem(key: string, value: string): void | Promise mergeItem?(key: string, value: string): Promise - getItem(key: string): null | string | Promise + getItem(key: string): null | string | Promise } export interface PersistConfiguration {