|
|
@@ -15,14 +15,24 @@
|
|
|
// aa('aas')
|
|
|
|
|
|
interface Storage {
|
|
|
+
|
|
|
+ readonly length: number;
|
|
|
+
|
|
|
+ clear(): void;
|
|
|
+
|
|
|
getItem(key: string): string | null;
|
|
|
|
|
|
- setItem(key: string, value: string): void;
|
|
|
+ key(index: number): string | null;
|
|
|
|
|
|
removeItem(key: string): void;
|
|
|
|
|
|
- clear(): void;
|
|
|
+ setItem(key: string, value: string): void;
|
|
|
+
|
|
|
+ [name: string]: any;
|
|
|
|
|
|
+ /**
|
|
|
+ * 用户 token
|
|
|
+ */
|
|
|
token: string | null
|
|
|
}
|
|
|
|