-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef6dc28
commit 22ba30b
Showing
9 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
export class MemoryStorage { | ||
storage; | ||
|
||
constructor(initial?: any) { | ||
constructor(initial?: Record<string, unknown>) { | ||
this.storage = initial || {}; | ||
} | ||
|
||
getItem(key) { | ||
getItem(key: string) { | ||
return this.storage[key]; | ||
} | ||
|
||
setItem(key, value) { | ||
setItem(key: string, value: unknown) { | ||
this.storage[key] = value; | ||
} | ||
} | ||
|
||
export class NoStorage { | ||
constructor(initial?: any) {} | ||
constructor(initial?: unknown) {} | ||
|
||
getItem(key) { | ||
getItem(key: string) { | ||
return null; | ||
} | ||
|
||
setItem(key, value) {} | ||
setItem(key: string, value: unknown) {} | ||
} | ||
|
||
export default MemoryStorage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// assign alby-tools exports to global window object (for index.browser.js) | ||
// @ts-ignore | ||
// @ts-ignore this file is created at build time | ||
window["lightningTools"] = require("./index.cjs"); |