UNPKG

mustard-app

Version:

个人前端微应用建设中。。。

26 lines (25 loc) 928 B
import { MustardName } from '../typings'; export declare function proxyStorage(appName: MustardName, _storage: typeof localStorage | typeof sessionStorage): { readonly length: number; clear(): void; getItem(key: string): string; setItem(key: string, value: unknown): any; removeItem(key: string): boolean; key(index: number): string | symbol; }; export declare function proxyLocalStorage(appName: MustardName): { readonly length: number; clear(): void; getItem(key: string): string; setItem(key: string, value: unknown): any; removeItem(key: string): boolean; key(index: number): string | symbol; }; export declare function proxySessionStorage(appName: MustardName): { readonly length: number; clear(): void; getItem(key: string): string; setItem(key: string, value: unknown): any; removeItem(key: string): boolean; key(index: number): string | symbol; };