Skip to content

Commit

Permalink
README: update type of StorageProvider interface
Browse files Browse the repository at this point in the history
  • Loading branch information
xr0master committed Mar 5, 2024
1 parent a018a63 commit 1e51434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ The custom provider must match the interface.

```ts
interface StorageProvider {
get: (key: string) => string | null | undefined;
set: (key: string, value: string) => void;
remove: (key: string) => void;
get: (key: string) => Promise<string | null | undefined>;
set: (key: string, value: string) => Promise<void>;
remove: (key: string) => Promise<void>;
}
```

Expand Down

0 comments on commit 1e51434

Please sign in to comment.