Skip to content

Commit

Permalink
chore: 类型
Browse files Browse the repository at this point in the history
  • Loading branch information
BearBin1215 committed Dec 30, 2024
1 parent b5fdec3 commit 8be5037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/@types/LocalObjectStorage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ declare class LocalObjectStorage {

get length(): number;

getItem<T = any>(key: string, fallback?: T): T;
getItem<T = any>(key: string): T | string | null;

getItem<T = any>(key: string, fallback: T): T;

setItem<T = any>(key: string, value: T): void;

Expand Down

0 comments on commit 8be5037

Please sign in to comment.