Skip to content

Commit

Permalink
typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
framitdavid committed Oct 25, 2024
1 parent 8ca15da commit d64d4cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class ScopedStorageImpl implements ScopedStorage {
);
}

public getItem<T>(key: keyof T): T | null {
public getItem<T>(key: string) {
const records: T = this.getAllRecordsInStorage();

if (!records) {
Expand All @@ -34,7 +34,7 @@ export class ScopedStorageImpl implements ScopedStorage {
return records[key] as unknown as T;
}

public removeItem<T>(key: keyof T): void {
public removeItem<T>(key: string): void {
const storageRecords: T | null = this.getAllRecordsInStorage<T>();

if (!storageRecords) {
Expand Down

0 comments on commit d64d4cf

Please sign in to comment.